:root {
  --as-red: #b90300;
  --as-red-bright: #e21f11;
  --as-ink: #191c1d;
  --as-muted: #5d3f3a;
  --as-surface: #f8f9fa;
  --as-card: #ffffff;
  --as-line: #e7e8e9;
  --as-dark: #121316;
}

html { scroll-padding-top: 92px; }
body { min-width: 320px; }
body, button, input, select, textarea { font-family: "Montserrat", Arial, Helvetica, sans-serif !important; word-spacing: normal; letter-spacing: normal; }
p, li, a, label, input, select, textarea { line-height: 1.55; word-spacing: 0; }

*:focus-visible {
  outline: 3px solid rgba(226, 31, 17, .32);
  outline-offset: 3px;
}

.autostar-home-hero-grid { align-items: center; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.autostar-home-hero-grid > * { min-width: 0; }
.autostar-home-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.autostar-home-hero-media img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 22px rgba(25, 28, 29, .16));
}
@media (max-width: 767px) {
  .autostar-home-hero { min-height: auto; }
  .autostar-home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .autostar-home-hero-media img { max-width: 360px; }
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13,14,17,.96) 0%, rgba(13,14,17,.84) 48%, rgba(13,14,17,.34) 100%),
    url('../hero-bg.png') center/cover no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -60% auto;
  width: 520px;
  height: 520px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}
.eyebrow::before {
  display: none;
}
.precision-line { display: none !important; }
.page-hero .flex.flex-wrap.gap-md.mt-xl { display: none !important; }
.page-hero a[class*="bg-primary"], .page-hero a[class*="border-white"], .page-hero button { display: none !important; }
.page-hero { background-image: linear-gradient(90deg,rgba(13,14,17,.94),rgba(13,14,17,.58)),url('../hero-bg.png'); }
.autostar-category-coverage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:32px}.autostar-category-coverage{width:100%}.autostar-category-coverage-grid a{text-decoration:none}.autostar-category-coverage-grid small{display:block;margin-top:5px;color:var(--as-muted)}
.autostar-company-downloads{width:100%}.autostar-download-heading{text-align:center}.autostar-download-heading h2{font-size:32px;font-weight:800}.autostar-download-heading p{margin-top:8px;color:var(--as-muted)}.autostar-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,360px));justify-content:center;gap:20px;margin-top:30px}.autostar-download-card{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:2px 16px;padding:24px;border:1px solid var(--as-line);border-radius:14px;background:var(--as-card);box-shadow:0 10px 30px rgba(25,28,29,.06);text-decoration:none}.autostar-download-card>.material-symbols-outlined{grid-row:1/3;display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:rgba(185,3,0,.08);color:var(--as-red);font-size:28px}.autostar-download-card strong{font-size:18px}.autostar-download-card small{color:var(--as-red);font-weight:700}
.autostar-dynamic-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}.autostar-dynamic-heading h2{margin-top:6px}.autostar-dynamic-heading>a{color:var(--as-red);font-weight:800;text-decoration:none}.autostar-home-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.autostar-home-product-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--as-line);border-radius:16px;background:var(--as-card);box-shadow:0 8px 28px rgba(25,28,29,.05);transition:transform .25s,box-shadow .25s}.autostar-home-product-card:hover{transform:translateY(-5px);box-shadow:0 18px 42px rgba(25,28,29,.11)}.autostar-home-product-image{display:flex;align-items:center;justify-content:center;height:260px;padding:18px;background:linear-gradient(145deg,#fff,#f3f4f5)}.autostar-home-product-image img{width:100%;height:100%;object-fit:contain}.autostar-home-product-body{display:flex;flex:1;flex-direction:column;padding:20px}.autostar-product-category{min-height:20px;color:var(--as-red);font-size:12px;font-weight:800;text-transform:uppercase}.autostar-home-product-body h3{margin:8px 0 14px;font-size:20px;font-weight:800}.autostar-home-product-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid var(--as-line)}.autostar-home-product-footer .price{color:var(--as-red);font-weight:800}.autostar-home-product-footer>a{font-size:13px;font-weight:800;text-decoration:none}.autostar-slider-track{position:relative;min-height:330px}.autostar-slide{position:absolute;inset:0;visibility:hidden;opacity:0;transform:translateX(22px);pointer-events:none;transition:opacity .4s ease,transform .4s ease}.autostar-slide.is-active{position:relative;visibility:visible;opacity:1;transform:none;pointer-events:auto}.autostar-slider-controls{display:flex;gap:10px}.autostar-slider-controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--as-line);border-radius:50%;background:var(--as-card);color:var(--as-red);font-size:22px}.autostar-slider-controls button:hover{background:var(--as-red);color:#fff}.autostar-slider-dots{display:flex;justify-content:center;gap:8px;margin-top:22px}.autostar-slider-dots button{width:9px;height:9px;border:0;border-radius:50%;background:#c9c9c9}.autostar-slider-dots button.is-active{width:28px;border-radius:999px;background:var(--as-red)}.autostar-testimonial-card{max-width:850px;margin-inline:auto;padding:40px;border:1px solid var(--as-line);border-radius:18px;background:var(--as-card);box-shadow:0 14px 40px rgba(25,28,29,.07)}.autostar-stars{color:var(--as-red);font-size:20px;letter-spacing:3px}.autostar-testimonial-card blockquote{margin:20px 0 28px;color:var(--as-ink);font-size:clamp(18px,2.2vw,25px);font-style:italic;line-height:1.65}.autostar-testimonial-card blockquote p{display:inline}.autostar-partner{display:flex;align-items:center;gap:14px}.autostar-partner img,.autostar-partner-placeholder{width:60px;height:60px;border-radius:50%;object-fit:cover}.autostar-partner-placeholder{display:grid;place-items:center;background:var(--as-red);color:#fff;font-size:22px;font-weight:800}.autostar-partner strong,.autostar-partner small{display:block}.autostar-partner small{margin-top:3px;color:var(--as-muted)}.autostar-certificate-card{max-width:800px;margin-inline:auto;text-align:center}.autostar-certificate-card img{width:100%;max-height:620px;object-fit:contain;border:1px solid var(--as-line);border-radius:14px;background:#fff;box-shadow:0 16px 44px rgba(25,28,29,.09)}.autostar-certificate-card figcaption{margin-top:14px;font-size:18px;font-weight:800}.autostar-admin-note{padding:18px;border-left:4px solid var(--as-red);background:#fff5f3;color:var(--as-ink)}
html.dark .autostar-home-product-card,html.dark .autostar-testimonial-card{background:#1a1b1e;border-color:#38393c}html.dark .autostar-home-product-image{background:linear-gradient(145deg,#242529,#111216)}html.dark .autostar-testimonial-card blockquote{color:#f8f9fa}

.glass-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.site-card {
  background: var(--as-card);
  border: 1px solid var(--as-line);
  box-shadow: 0 12px 38px rgba(25,28,29,.06);
}
.site-card:hover {
  box-shadow: 0 20px 54px rgba(25,28,29,.11);
  transform: translateY(-3px);
}
.site-card,
.category-chip,
.product-row,
.industry-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.red-grid {
  background-image:
    linear-gradient(rgba(185,3,0,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,3,0,.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.section-number {
  color: transparent;
  -webkit-text-stroke: 1px rgba(185,3,0,.24);
  font-weight: 800;
  letter-spacing: -.05em;
}

.product-media {
  background:
    radial-gradient(circle at 50% 28%, rgba(226,31,17,.13), transparent 37%),
    linear-gradient(145deg, #ffffff 0%, #f0f1f2 100%);
}

.category-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--as-red);
  border-color: var(--as-red);
}

.product-row[hidden] { display: none !important; }

.spec-tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #e7e8e9;
  background: #f8f9fa;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #5d3f3a;
}

.timeline-line {
  position: relative;
}
.timeline-line::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 7px;
  width: 2px;
  background: linear-gradient(var(--as-red), rgba(185,3,0,.08));
}

.mobile-menu-button { display: none; }
nav .mobile-menu-button { display: none !important; }
.mobile-menu-panel {
  position: fixed;
  top: var(--nav-height, 74px);
  left: 0;
  right: 0;
  z-index: 49;
  padding: 14px 16px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  background: rgba(248,249,250,.98);
  border-bottom: 1px solid #e7e8e9;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}
.mobile-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.mobile-menu-panel a:hover,
.mobile-menu-panel a.is-active { background: rgba(185,3,0,.08); color: var(--as-red); }

html.dark .site-card,
html.dark .product-row,
html.dark .industry-card {
  background: #1a1b1e !important;
  border-color: #2e2f33 !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
html.dark .product-media {
  background:
    radial-gradient(circle at 50% 28%, rgba(226,31,17,.18), transparent 37%),
    linear-gradient(145deg, #242529 0%, #111216 100%);
}
html.dark .spec-tag {
  color: #e1e3e4;
  background: #242529;
  border-color: #38393c;
}
html.dark .mobile-menu-panel {
  background: rgba(18,19,22,.98);
  border-color: #2e2f33;
}
html.dark .mobile-menu-panel a { color: #f8f9fa; }
html.dark .mobile-menu-panel a:hover,
html.dark .mobile-menu-panel a.is-active { color: #ffb4a8; background: rgba(226,31,17,.12); }
html.dark .red-grid {
  background-image:
    linear-gradient(rgba(226,31,17,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,31,17,.08) 1px, transparent 1px);
}

@media (max-width: 767px) {
  .mobile-menu-button { display: inline-flex; }
  nav > div { padding-left: 16px !important; padding-right: 16px !important; }
  nav .bg-primary-container { display: none !important; }
  .px-margin-desktop { padding-left: 16px !important; padding-right: 16px !important; }
  .text-display-lg { font-size: 38px !important; line-height: 44px !important; }
  .page-hero { background-position: 62% center; }
  .page-hero::after { width: 330px; height: 330px; right: -38%; bottom: -38%; }
  .autostar-category-coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .autostar-download-grid{grid-template-columns:1fr}
  .autostar-dynamic-heading{align-items:flex-start}.autostar-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.autostar-home-product-image{height:190px}.autostar-home-product-body{padding:14px}.autostar-home-product-body h3{font-size:16px}.autostar-home-product-footer{align-items:flex-start;flex-direction:column}.autostar-testimonial-card{padding:24px}.autostar-slider-track{min-height:380px}
}

@media (max-width: 420px) {
  .text-display-lg { font-size: 33px !important; line-height: 39px !important; }
  .autostar-home-product-image{height:150px}.autostar-dynamic-heading{display:grid;grid-template-columns:1fr auto}.autostar-dynamic-heading>a{grid-column:1/-1}.autostar-testimonials .autostar-dynamic-heading,.autostar-certificates .autostar-dynamic-heading{grid-template-columns:1fr auto}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Shared dark theme for all secondary pages. */
html.dark { color-scheme: dark; }
html.dark body { background: #121316 !important; color: #f8f9fa !important; }
html.dark nav { background: rgba(18,19,22,.96) !important; border-bottom: 1px solid #2e2f33; box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
html.dark footer { background: #0d0e11 !important; border-color: #2e2f33 !important; }
html.dark .bg-surface { background-color: #121316 !important; }
html.dark .bg-surface-container-lowest,
html.dark .bg-white { background-color: #0d0e11 !important; }
html.dark .bg-surface-container-low { background-color: #1a1b1e !important; }
html.dark .bg-surface-container { background-color: #242529 !important; }
html.dark .bg-surface-container-high { background-color: #2e2f33 !important; }
html.dark .bg-surface-container-highest { background-color: #38393c !important; }
html.dark .text-on-surface,
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: #f8f9fa !important; }
html.dark .text-on-surface-variant { color: #d6d7d8 !important; }
html.dark .text-secondary { color: #bec6e0 !important; }
html.dark .text-primary { color: #ff7165 !important; }
html.dark .border-surface-container-high,
html.dark .border-surface-container,
html.dark .border-outline-variant { border-color: #38393c !important; }
html.dark .bg-primary\/5 { background-color: rgba(226,31,17,.11) !important; }
html.dark .bg-primary\/10 { background-color: rgba(226,31,17,.14) !important; }
html.dark input,
html.dark textarea,
html.dark select {
  color: #f8f9fa !important;
  background-color: #1a1b1e !important;
  border-color: #38393c !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder { color: rgba(248,249,250,.46); }
html.dark img[src*="Autostar-Germany-logo-light"] { filter: brightness(0) invert(1); }
html.dark .site-card a { color: inherit; }

/* Products archive: WooCommerce-friendly product finder */
.product-finder-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.product-search-field {
  position: relative;
  display: block;
  width: min(100%, 430px);
  flex: 0 0 min(100%, 430px);
}

.product-search-field > .material-symbols-outlined {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--as-muted);
  pointer-events: none;
}

.product-search-field input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px 14px 50px;
  border: 1px solid var(--as-line);
  border-radius: 8px;
  background: var(--as-card);
  color: var(--as-ink);
  box-shadow: 0 10px 30px rgba(25, 28, 29, .05);
}

.product-search-field input:focus {
  border-color: var(--as-red);
  box-shadow: 0 0 0 3px rgba(185, 3, 0, .12);
  outline: 0;
}

.catalog-shop-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.catalog-sidebar {
  position: sticky;
  top: 100px;
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.catalog-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--as-line);
}

.catalog-sidebar-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--as-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalog-sidebar-heading h3 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
}

.catalog-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--as-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.catalog-category-button:hover {
  color: var(--as-red);
  background: rgba(185, 3, 0, .055);
  border-color: rgba(185, 3, 0, .12);
  transform: translateX(2px);
}

.catalog-category-button[aria-pressed="true"] {
  color: #fff;
  background: var(--as-red);
  border-color: var(--as-red);
  box-shadow: 0 10px 24px rgba(185, 3, 0, .19);
}

.catalog-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-category-label .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 20px;
}

.catalog-category-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f1f2;
  color: var(--as-muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-category-button[aria-pressed="true"] .catalog-category-count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.catalog-products-area {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  margin-bottom: 18px;
  color: var(--as-muted);
  font-size: 14px;
}

.catalog-toolbar .woocommerce-result-count {
  margin: 0;
  font-weight: 700;
}

.catalog-view-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.catalog-view-label .material-symbols-outlined {
  font-size: 19px;
  color: var(--as-red);
}

/* Matches the home page FEATURED RANGE card design and maps to WooCommerce loop classes. */
.catalog-products-area ul.products,
.woocommerce ul.products.product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.catalog-products-area ul.products::before,
.catalog-products-area ul.products::after,
.woocommerce ul.products.product-grid::before,
.woocommerce ul.products.product-grid::after {
  display: none !important;
  content: none !important;
}

.catalog-products-area ul.products li.product,
.woocommerce ul.products.product-grid li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 32px;
  border-radius: 0;
  text-align: center;
}

.product-card[hidden] {
  display: none !important;
}

.product-card-image-link,
.product-card-title-link {
  color: inherit;
  text-decoration: none;
}

.product-card-image-link {
  display: block;
  width: 100%;
}

.product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 256px;
  margin-bottom: 32px;
  background: transparent;
}

.product-card-media img,
.woocommerce ul.products.product-grid li.product img {
  width: auto !important;
  max-width: 100%;
  height: 88% !important;
  max-height: 100%;
  margin: 0 !important;
  object-fit: contain;
  transition: transform .28s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.055);
}

.product-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-card-category {
  display: block;
  margin-bottom: 8px;
  color: var(--as-red);
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-card .woocommerce-loop-product__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--as-ink);
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

.product-card-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 60px;
  margin: 0;
  color: var(--as-muted);
  font-size: 14px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card-footer {
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--as-line);
}

.product-card-spec {
  display: block;
  min-height: 16px;
  margin-bottom: 14px;
  color: #565e74;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-card .product-card-button,
.woocommerce ul.products.product-grid li.product .button.product-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid var(--as-red) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--as-red) !important;
  font-size: 15px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.product-card .product-card-button:hover,
.woocommerce ul.products.product-grid li.product .button.product-card-button:hover {
  background: var(--as-red) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.product-empty-state {
  padding: 48px 24px;
  border-radius: 8px;
  text-align: center;
}

.product-empty-state .material-symbols-outlined {
  font-size: 48px;
}

.product-empty-state h3 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
}

.product-empty-state p {
  margin-top: 6px;
  color: var(--as-muted);
}

.catalog-packaging-note {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(185, 3, 0, .2);
  border-radius: 8px;
  background: rgba(185, 3, 0, .045);
  color: var(--as-muted);
  font-size: 14px;
  line-height: 22px;
}

.catalog-packaging-note strong {
  color: var(--as-ink);
}

html.dark .product-search-field input {
  background: #1a1b1e !important;
  color: #f8f9fa !important;
  border-color: #38393c !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

html.dark .catalog-sidebar-heading,
html.dark .product-card-footer {
  border-color: #38393c;
}

html.dark .catalog-sidebar-kicker,
html.dark .catalog-toolbar,
html.dark .product-card-description,
html.dark .product-empty-state p,
html.dark .catalog-packaging-note {
  color: #c4c5c7;
}

html.dark .catalog-category-button {
  color: #f8f9fa;
}

html.dark .catalog-category-button:hover {
  color: #ff8f85;
  background: rgba(226, 31, 17, .11);
  border-color: rgba(226, 31, 17, .2);
}

html.dark .catalog-category-button[aria-pressed="true"] {
  color: #fff;
  background: #c51b11;
  border-color: #c51b11;
}

html.dark .catalog-category-count {
  color: #d6d7d8;
  background: #2e2f33;
}

html.dark .catalog-category-button[aria-pressed="true"] .catalog-category-count {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

html.dark .product-card-media {
  background: transparent;
}

html.dark .product-card .woocommerce-loop-product__title,
html.dark .catalog-packaging-note strong {
  color: #f8f9fa;
}

html.dark .product-card-spec {
  color: #bec6e0;
}

html.dark .catalog-packaging-note {
  border-color: rgba(226, 31, 17, .24);
  background: rgba(226, 31, 17, .08);
}

@media (max-width: 1180px) {
  .catalog-products-area ul.products,
  .woocommerce ul.products.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .product-finder-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .product-search-field {
    width: 100%;
    flex-basis: auto;
    max-width: none;
  }

  .catalog-shop-shell {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-category-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .catalog-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    padding: 22px;
  }

  .product-card-media {
    height: 210px;
  }
}

@media (max-width: 560px) {
  .catalog-products-area ul.products,
  .woocommerce ul.products.product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-category-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .catalog-category-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 172px;
    scroll-snap-align: start;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .product-card-media {
    height: 240px;
  }
}

/* Header logo size fix */
header img[src*="Autostar-Germany-logo"],
nav img[src*="Autostar-Germany-logo"] {
    width: auto !important;
    height: 40px !important;
    max-width: 190px !important;
    object-fit: contain !important;
    display: block;
}

@media (max-width: 767px) {
    header img[src*="Autostar-Germany-logo"],
    nav img[src*="Autostar-Germany-logo"] {
        height: 32px !important;
        max-width: 150px !important;
    }
}

/* v22: visible testimonial group, with the certificate slider kept separate. */
.autostar-testimonial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;min-height:0}
.autostar-testimonial-grid .autostar-testimonial-card{display:none;position:relative;inset:auto;max-width:none;width:100%;min-width:0;margin:0;padding:26px;box-sizing:border-box}
.autostar-testimonial-grid .autostar-testimonial-card.is-active{display:flex;flex-direction:column;visibility:visible;opacity:1;transform:none;pointer-events:auto}
.autostar-testimonial-grid .autostar-partner{margin-top:auto}
.autostar-testimonial-grid blockquote{font-size:17px;line-height:1.55;overflow-wrap:anywhere}
.autostar-slider-controls button:disabled{opacity:.35;cursor:default}
@media(max-width:1023px){.autostar-testimonial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.autostar-testimonial-grid{grid-template-columns:minmax(0,1fr)}}

/* Homepage layout: allow flex children to shrink within their available space. */
.autostar-home-section .grid > *,
.autostar-home-section .flex > * { min-width: 0; }
.autostar-home-section h1,
.autostar-home-section h2,
.autostar-home-section h3 { overflow-wrap: break-word; }
.autostar-home-section video { width: 100%; height: auto; }
@media (min-width: 768px) {
  .autostar-home-section .md\:w-1\/2 { flex: 1 1 0%; }
  .autostar-home-section .md\:w-1\/3 { flex: 1 1 0%; }
  .autostar-home-section .md\:w-2\/3 { flex: 2 1 0%; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .autostar-home-section .text-display-lg { font-size: 42px; line-height: 1.15; }
  .autostar-home-section .md\:grid-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .autostar-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .autostar-home-section { padding-block: 40px; }
  .autostar-home-section .px-margin-desktop { padding-inline: 20px !important; }
  .autostar-home-section .gap-2xl { gap: 28px; }
  .autostar-home-section .p-2xl,
  .autostar-home-section .p-3xl { padding: 24px; }
  .autostar-home-section .text-headline-lg { font-size: 28px; line-height: 1.25; }
  .autostar-home-section .text-body-lg { font-size: 16px; line-height: 1.65; }
  .autostar-home-section .md\:flex-row { flex-direction: column; }
  .autostar-home-section .md\:w-1\/2,
  .autostar-home-section .md\:w-1\/3,
  .autostar-home-section .md\:w-2\/3 { width: 100%; }
  .autostar-home-section .md\:w-1\/3:empty { display: none; }
  .autostar-home-section .px-3xl { padding-inline: 24px; }
  .autostar-home-section .py-xl { padding-block: 16px; }
  .autostar-home-hero { padding-block: 0; }
  .autostar-home-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px; gap: 32px; }
  .autostar-home-hero h1 { font-size: clamp(32px, 7.5vw, 44px) !important; line-height: 1.12 !important; }
  .autostar-home-hero-media img { max-width: 340px; }
  .autostar-dynamic-heading { flex-wrap: wrap; }
  .autostar-home-product-body h3 { overflow-wrap: break-word; }
}
@media (max-width: 379px) {
  .autostar-home-product-grid { grid-template-columns: minmax(0, 1fr); }
  .autostar-home-product-image { height: 220px; }
}

/* Keep icon ligature fallback text from widening cards while fonts load. */
.material-symbols-outlined { display: inline-block; width: 1em; flex-shrink: 0; overflow: hidden; white-space: nowrap; vertical-align: middle; }
@media (max-width: 1099px) {
  .autostar-home-section .bg-primary.flex { flex-direction: column; align-items: stretch; }
  .autostar-home-section .bg-primary.flex button { max-width: 100%; justify-content: center; }
}
