@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* Bavarian Engines — 2026 design system */
:root {
  --brand: #1B4FD8;
  --brand-dark: #0F2D8C;
  --brand-light: #EEF3FF;
  --accent: #F5B800;
  --accent-hover: #E8A800;
  --accent-soft: #FFF8E1;
  --gold: var(--accent);
  --gold-hover: var(--accent-hover);
  --text: #64748B;
  --text-strong: #334155;
  --heading: #0F172A;
  --white: #ffffff;
  --surface: #FFFFFF;
  --surface-muted: #F4F6FA;
  --surface-elevated: #FFFFFF;
  --footer-bg: #0B1220;
  --footer-bg-alt: #111827;
  --footer-text: rgba(226, 232, 240, 0.72);
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --dropdown-bg: #111827;
  --page-banner: linear-gradient(135deg, #0B1220 0%, #1B4FD8 100%);
  --whatsapp: #22C55E;
  --sale-badge: var(--accent);
  --container: 1240px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-xs);
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.logo:hover { opacity: 0.92; }
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-emblem {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  min-height: 44px;
}
.logo-title,
.logo-subtitle {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #2a2f36;
}
.logo-subtitle {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #5a6270;
  padding-left: 1px;
}
.logo-img,
.logo-svg {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--heading);
  line-height: 1.2;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand) 50%, #fff 50%, #fff 100%);
  border: 2.5px solid var(--brand);
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.main-nav > ul > li > a:hover {
  color: var(--brand);
  background: var(--brand-light);
}
.main-nav > ul > li > a.active {
  color: var(--brand);
  background: var(--brand-light);
}
.main-nav > ul > li > a.active::after { display: none; }
.main-nav .chevron { width: 8px; height: 8px; opacity: 0.7; }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--dropdown-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 1100;
  pointer-events: none;
}
.main-nav .has-dropdown:hover .submenu,
.main-nav .has-dropdown:focus-within .submenu,
.main-nav .has-dropdown.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.main-nav .has-dropdown.is-open .chevron,
.main-nav .has-dropdown:hover .chevron {
  transform: rotate(180deg);
}
.main-nav .chevron {
  transition: transform 0.2s;
}
.submenu li { margin: 0; padding: 0; }
.submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  border-bottom: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.submenu a::after { display: none !important; }
.submenu li:last-child a { border-bottom: none; }
.submenu a:hover {
  color: #fff !important;
  background: rgba(27, 79, 216, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 10px;
  color: var(--text-strong);
  position: relative;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover {
  background: var(--surface-muted);
  color: var(--brand);
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.cart-count[hidden] {
  display: none !important;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.5);
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  z-index: 1700;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 {
  margin: 0;
  font-size: 22px;
}
.cart-close {
  font-size: 28px;
  line-height: 1;
  color: var(--text-strong);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.cart-empty {
  color: var(--text);
  line-height: 1.6;
}
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-line-img img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-line-info h3 {
  font-size: 14px;
  margin: 0 0 6px;
  line-height: 1.35;
}
.cart-line-price {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--heading);
}
.cart-line-info a {
  font-size: 13px;
}
.cart-line-remove {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}
.cart-line-remove:hover {
  color: var(--brand);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 16px;
}
.cart-note {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 16px;
}
.cart-checkout-btn,
.cart-whatsapp-btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}
.cart-shipping-line,
.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 0 0 8px;
}
.cart-total-line strong {
  font-size: 16px;
}

/* Checkout (WooCommerce-style) */
.checkout-page {
  padding: 48px 0 80px;
  background: #f0f0f1;
}
.checkout-page .page-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 28px;
  font-weight: 700;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
.checkout-billing,
.checkout-order-review {
  background: #fff;
  border-radius: 4px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.checkout-billing h3,
.checkout-order-review h3 {
  font-size: 1.25rem;
  margin: 0 0 20px;
  font-weight: 600;
}
.checkout-fields .form-row {
  margin-bottom: 16px;
}
.checkout-fields label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
.checkout-fields .optional {
  font-weight: 400;
  color: var(--text);
}
.checkout-fields input[type="text"],
.checkout-fields input[type="email"],
.checkout-fields input[type="tel"],
.checkout-fields select,
.checkout-fields textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
}
.checkout-fields textarea {
  min-height: 80px;
  resize: vertical;
}
.checkout-fields .form-row-first,
.checkout-fields .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}
.checkout-fields .form-row-first {
  margin-right: 12px;
}
@media (max-width: 600px) {
  .checkout-fields .form-row-first,
  .checkout-fields .form-row-last {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
.checkout-fields .checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
.checkout-fields .checkbox input {
  margin-top: 4px;
  flex-shrink: 0;
}
.shipping-fields {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}
.shipping-fields[hidden] {
  display: none !important;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 15px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}
.woocommerce-checkout-review-order-table thead th {
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table td:last-child {
  text-align: right;
}
.woocommerce-checkout-review-order-table .product-quantity {
  font-weight: 600;
}
.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 500;
}
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  border-bottom: none;
  padding-top: 16px;
  font-size: 1.05em;
}
.woocommerce-shipping-totals td {
  padding-top: 12px;
}
.ct-shipping-heading {
  font-weight: 500;
  margin-bottom: 8px;
}
.woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-shipping-methods li label {
  font-weight: 400;
}

/* Payment */
.woocommerce-checkout-payment {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}
.wc_payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.wc_payment_method {
  margin-bottom: 12px;
}
.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
}
.wc_payment_method .input-radio {
  display: none;
}
.wc_payment_method > label::before {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
}
.wc_payment_method .input-radio:checked + label::before {
  border-color: #f0b429;
  background: radial-gradient(circle, #f0b429 40%, #fff 45%);
}
.payment_method_bacs .payment_box {
  margin: 10px 0 0 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.payment_method_bacs .payment_box p {
  margin: 0;
}
.woocommerce-terms-and-conditions-wrapper {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.woocommerce-privacy-policy-text p {
  margin: 0 0 12px;
}
.cr-customer-consent {
  margin: 0;
}
.cr-customer-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}
.checkout-order-review .place-order .button.alt {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-order-review .place-order .button.alt:hover {
  background: #333;
}

.order-received-page {
  padding: 64px 0 100px;
  text-align: center;
  background: #f0f0f1;
}
.order-received-box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 40px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.order-received-box h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
.order-received-box .order-number {
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.order-received-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #0B1220 center/cover no-repeat;
  background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5915952013403868074_y.jpg');
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.55) 45%, rgba(27, 79, 216, 0.25) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 720px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p { color: rgba(255, 255, 255, 0.88); font-size: 17px; max-width: 620px; }
.hero strong { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: var(--heading);
  margin-top: 28px;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--accent);
  color: var(--heading);
  box-shadow: var(--shadow-lg);
}
.btn-black {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 79, 216, 0.28);
}
.btn-black:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(27, 79, 216, 0.35);
}
.btn-outline {
  background: var(--surface-muted);
  color: var(--text-strong);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--heading);
}

/* Page banner (inner pages) */
.page-banner {
  background: var(--page-banner);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 184, 0, 0.12), transparent 45%);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-banner-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
  margin: 12px 0 0;
}
.page-banner--photo {
  background-image:
    linear-gradient(135deg, rgba(11, 18, 32, 0.88) 0%, rgba(27, 79, 216, 0.75) 100%),
    url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5915952013403868074_y.jpg');
  background-size: cover;
  background-position: center;
}

/* Sections */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-title-sm { font-size: clamp(32px, 3.5vw, 40px); margin-top: 0; }
.section-subtitle {
  text-align: center;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 17px;
}
.section-tight { padding-top: 0; }

/* Category cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.88) 0%, rgba(11, 18, 32, 0.15) 55%, transparent 100%);
}
.category-card h5 {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 24px;
  margin: 0;
}
.category-card a { color: #fff; }
.category-card a:hover { color: var(--accent); }
.category-n57 { background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5920456214326659640_y.jpg'); }
.category-n47 { background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5920456214326659670_x.jpg'); }
.category-m57 { background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5920456214326659921_y.jpg'); }
.category-b57 { background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5920456214326659814_y.jpg'); }
.category-b47 { background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5922527951931427593_y.jpg'); }
.category-b58 { background-image: url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5920456214326659791_y.jpg'); }

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card-media-wrap {
  position: relative;
  margin: 0 0 16px;
}
.product-card-gallery {
  position: relative;
  margin: 0;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover .product-card-gallery {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-main-link {
  display: block;
  background: #fff;
}
.product-card-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.product-card-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--border);
  scrollbar-width: thin;
}
.product-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.product-thumb.is-active {
  border-color: var(--brand);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-stock {
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  margin: 0 0 10px;
}
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent);
  color: var(--heading);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.product-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product-card h3 a { color: var(--heading); }
.product-card h3 a:hover { color: var(--brand); }
.price {
  font-weight: 600;
  font-size: 16px;
  color: var(--heading);
}
.price del {
  color: #999;
  font-weight: 400;
  margin-left: 8px;
}
.product-meta {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 8px 0 16px;
}
.product-meta a { color: var(--text); }
.product-card .btn-black {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* Product detail page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-gallery {
  position: relative;
}
.product-detail-gallery .sale-badge {
  z-index: 2;
}
.product-detail-main {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-detail-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.product-detail-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.product-detail-thumb.is-active {
  border-color: var(--brand);
}
.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 16px;
}
.product-detail-price {
  font-size: 22px;
  margin-bottom: 12px;
}
.product-stock-detail {
  font-weight: 600;
  color: #15803d;
  margin: 0 0 20px;
}
.product-specs {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}
.product-specs ul {
  margin: 0;
  padding-left: 20px;
}
.product-specs li {
  margin-bottom: 8px;
}
.product-add-form {
  margin-bottom: 20px;
}
.qty-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.product-qty {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  margin-bottom: 16px;
  display: block;
}
.product-detail-cart {
  width: 100%;
  max-width: 320px;
}
.product-sku-meta {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 12px;
}
.product-live-link {
  font-size: 14px;
}
@media (max-width: 999px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.shop-toolbar .result-count {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.sort-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sort-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.12);
}

.product-cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 6px;
}

.shop-pagination {
  margin-top: 48px;
  text-align: center;
}
.shop-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.shop-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.shop-pagination a:hover,
.shop-pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text);
}

/* Two column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.two-col .highlight { color: var(--brand); font-weight: 700; }

/* Homepage SEO / info block (matches live site dark section) */
.home-info-section {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.94) 0%, rgba(15, 35, 71, 0.9) 100%),
    url('https://bavarianengines.com/wp-content/uploads/2025/09/photo_5915952013403868074_y.jpg') center/cover no-repeat;
  padding: 72px 0;
}
.home-info-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}
.home-info-copy strong { color: #fff; }
.home-info-copy em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* Layout helpers */
.section-muted { background: var(--surface-muted); }
.about-copy h2 { font-size: 28px; margin: 36px 0 16px; }
.about-copy h2:first-of-type { margin-top: 0; }
.content-list { margin: 0 0 20px 24px; padding: 0; }
.content-list li { margin-bottom: 10px; line-height: 1.6; }

/* About page */
.about-team-section { padding-top: 48px; }
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-hero img { border-radius: var(--radius-lg); width: 100%; height: auto; display: block; box-shadow: var(--shadow-md); }
.about-hero h2 { font-size: 36px; margin-bottom: 16px; color: var(--heading); }
.about-hero h3 { font-size: 20px; margin-bottom: 16px; color: var(--heading); }
.text-highlight { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.trust-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.trust-card img {
  max-width: 180px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}
.trust-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--heading);
}
.trust-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.warranty-intro { text-align: center; }
.warranty-intro .section-title { margin-bottom: 20px; }

.visit-store-section { background: var(--surface-muted); padding: 64px 0; }
.visit-store {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.visit-store h2 {
  font-size: 32px;
  margin: 0 0 16px;
  color: var(--heading);
}
.visit-store > p {
  color: var(--text);
  margin: 0 0 24px;
  line-height: 1.6;
}
.visit-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Services page */
.services-hero .btn-outline {
  border-color: var(--border-strong);
  color: var(--heading);
}
.services-categories .category-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.services-categories {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .services-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.service-row-reverse {
  direction: rtl;
}
.service-row-reverse > * {
  direction: ltr;
}
.service-row-media {
  margin: 0;
}
.service-row-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.service-row-body h3 {
  font-size: 26px;
  margin: 0 0 14px;
  color: var(--heading);
}
.service-row-body p,
.service-row-body .content-list {
  color: var(--text);
  line-height: 1.65;
}
.service-row-body .content-list {
  margin: 12px 0 16px;
}
.services-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}
.services-mini-badges img {
  border-radius: 8px;
  object-fit: contain;
}
.services-process-wrap {
  align-items: start;
  gap: 48px;
}
.service-process-img {
  margin: 0;
}
.service-process-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.service-process-img figcaption {
  font-size: 13px;
  color: var(--text);
  margin-top: 10px;
  text-align: center;
}
.services-audience-cards .service-audience-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 12px;
}
.services-audience-cards h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.services-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  text-align: center;
}
.services-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  box-shadow: var(--shadow-sm);
}
.services-stat strong {
  display: block;
  font-size: 32px;
  color: var(--brand);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}
.services-stat span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.services-why-copy {
  margin-top: 0;
}
.services-models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-top: 8px;
}
.services-model-col h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--heading);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 8px;
}
.services-model-col .content-list {
  margin: 0;
  font-size: 14px;
}
.services-included .content-list {
  margin: 16px 0;
}
.services-guide-table-wrap {
  overflow-x: auto;
  margin: 24px 0 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.services-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.services-guide-table th,
.services-guide-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.services-guide-table thead th {
  background: var(--surface-muted);
  font-weight: 700;
  color: var(--heading);
}
.services-guide-table tbody tr:last-child td {
  border-bottom: none;
}
.services-payment-grid {
  margin-top: 24px;
}
.services-blog-links {
  margin-top: 16px;
}
@media (max-width: 960px) {
  .services-stats {
    grid-template-columns: repeat(2, fr);
  }
  .services-models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-stats {
    grid-template-columns: 1fr;
  }
  .services-models-grid {
    grid-template-columns: 1fr;
  }
  .services-guide-table {
    font-size: 13px;
  }
  .services-guide-table th,
  .services-guide-table td {
    padding: 10px 12px;
  }
}
.services-process {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: be-step;
}
.services-process li {
  position: relative;
  padding: 0 0 32px 56px;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}
.services-process li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.services-process li::before {
  counter-increment: be-step;
  content: counter(be-step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-process li strong {
  display: block;
  font-size: 18px;
  color: var(--heading);
  margin-bottom: 8px;
}
.services-process li p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.services-detail-grid h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--heading);
}
.services-detail-grid p {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
}
.services-detail-grid a {
  color: var(--brand);
  font-weight: 600;
}
.services-audience {
  gap: 32px 48px;
}
.services-audience h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--heading);
}
.services-audience p {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
}
@media (max-width: 768px) {
  .services-detail-grid {
    grid-template-columns: 1fr;
  }
  .services-process li {
    margin-left: 16px;
    padding-left: 48px;
  }
  .service-row,
  .service-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  .services-process-wrap {
    grid-template-columns: 1fr;
  }
}

.m57-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.m57-hero-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.m57-intro a { color: var(--brand); font-weight: 600; }

/* Blog */
.blog-index-page .site-header {
  position: relative;
  z-index: 2;
}
.blog-hero {
  padding: 100px 0 64px;
  background: linear-gradient(135deg, #0B1220 0%, #152347 45%, #1B4FD8 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(245, 184, 0, 0.15), transparent 40%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.blog-hero p {
  margin: 0;
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin-inline: auto;
}
.blog-list-section {
  padding: 64px 0 88px;
  background: var(--surface-muted);
  min-height: 50vh;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-muted);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card h3,
.blog-card-excerpt {
  padding-left: 24px;
  padding-right: 24px;
}
.blog-card h3 {
  padding-top: 20px;
}
.blog-card-excerpt {
  padding-bottom: 24px;
  flex: 1;
}
.blog-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 14px;
}
.blog-card h3 a {
  color: var(--heading);
}
.blog-card h3 a:hover {
  color: var(--brand);
}
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.blog-post-banner {
  text-align: left;
}
.blog-post-banner h1 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.25;
  max-width: 900px;
}
.blog-back {
  margin: 0 0 16px;
  font-size: 14px;
}
.blog-back a {
  color: var(--brand);
  font-weight: 600;
}
.blog-post-wrap {
  max-width: 900px;
}
.blog-article {
  line-height: 1.7;
}
.blog-heading {
  font-size: 26px;
  margin: 40px 0 16px;
  color: var(--heading);
}
.blog-heading:first-child {
  margin-top: 0;
}
.blog-prose {
  margin-bottom: 20px;
  color: var(--text);
}
.blog-prose p { margin: 0 0 16px; }
.blog-prose ul,
.blog-prose ol { margin: 0 0 16px 24px; }
.blog-prose li { margin-bottom: 8px; }
.blog-prose a { color: var(--brand); font-weight: 600; }
.blog-prose strong { color: var(--heading); }
.blog-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin: 32px 0;
}
.blog-split-reverse {
  direction: ltr;
}
.blog-media img,
.blog-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.blog-figure {
  margin: 28px 0;
}
.blog-gallery-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.blog-gallery-2 img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-cta {
  text-align: center;
  margin: 24px 0;
}
.blog-cta .btn-black {
  display: inline-block;
  min-width: 200px;
}
.blog-faq {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.blog-faq summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq[open] summary { color: var(--heading); }
.blog-faq .blog-prose {
  padding-bottom: 18px;
}

/* Internal / external link blocks */
.related-links-section {
  padding-top: 48px;
  padding-bottom: 56px;
}
.related-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}
.related-links-col h3 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--heading);
}
.related-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-links-list li {
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.5;
}
.related-links-list a {
  font-weight: 600;
  color: var(--brand);
}
.related-links-list a:hover {
  color: var(--brand-dark);
}
.related-links-list a[target="_blank"]::after {
  content: ' ↗';
  font-size: 12px;
  opacity: 0.65;
}
.blog-prose .related-links-grid {
  margin-top: 8px;
}
@media (max-width: 689px) {
  .related-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 999px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-split { grid-template-columns: 1fr; }
}
@media (max-width: 689px) {
  .blog-grid,
  .blog-gallery-2 { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 32px; }
}

/* FAQ Accordion */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--heading);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 0 20px; color: var(--text); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { font-size: 15px; margin-bottom: 16px; }
.testimonial-card h6 { font-size: 14px; margin: 0; color: var(--heading); }

/* Reviews page */
.reviews-summary {
  max-width: 900px;
  margin: 0 auto 40px;
}
.reviews-summary-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  padding: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.reviews-score { text-align: center; min-width: 140px; }
.reviews-average {
  font-size: 48px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}
.reviews-score p {
  font-size: 13px;
  color: var(--text);
  margin: 8px 0 0;
}
.reviews-histogram {
  flex: 1;
  min-width: 260px;
  border-collapse: collapse;
  font-size: 13px;
}
.reviews-histogram td { padding: 4px 8px; vertical-align: middle; }
.reviews-histogram td:first-child { white-space: nowrap; width: 60px; }
.reviews-histogram td:last-child { text-align: right; width: 40px; color: var(--text); }
.review-meter {
  height: 8px;
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.review-meter-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #4F7BF7);
  border-radius: var(--radius-pill);
}
.reviews-count-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 16px 0 0;
}
.reviews-loading {
  text-align: center;
  color: var(--text);
  padding: 40px;
}
.review-list { max-width: 900px; margin: 0 auto; }
.review-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
  position: relative;
}
.avatar .verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--whatsapp);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.review-header strong { color: var(--heading); }
.review-date { font-size: 14px; color: #999; }
.review-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.review-product img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.review-product a { font-size: 14px; font-weight: 600; color: var(--brand); }

/* M57 page content */
.content-narrow { max-width: 800px; margin: 0 auto; }
.content-narrow h2 { font-size: 32px; margin: 32px 0 16px; }

.policy-prose { max-width: 800px; margin: 0 auto; line-height: 1.7; }
.policy-prose h2.policy-section-title {
  font-size: 32px;
  margin: 48px 0 20px;
  padding-top: 16px;
  color: var(--heading);
}
.policy-prose h2.policy-section-title:first-child { margin-top: 0; padding-top: 0; }
.policy-prose h2:not(.policy-section-title) {
  font-size: 22px;
  margin: 28px 0 12px;
  color: var(--heading);
}
.policy-prose p { margin: 0 0 16px; color: var(--text); }
.policy-prose ul,
.policy-prose ol { margin: 0 0 20px 24px; padding: 0; }
.policy-prose li { margin-bottom: 12px; }
.policy-prose li p { margin: 0; }
.policy-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.policy-prose a { color: var(--brand); font-weight: 600; }
.policy-prose a:hover { color: var(--brand-dark); }
.policy-prose strong { color: var(--heading); }
.gold-links a { color: var(--brand); font-weight: 600; display: block; margin: 8px 0; }
.gold-links a:hover { color: var(--brand-dark); }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--footer-bg-alt) 0%, var(--footer-bg) 100%);
  color: var(--footer-text);
  margin-top: 0;
}
.footer-middle {
  padding: 72px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-grid h3 {
  color: #F8FAFC;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.footer-grid a { color: rgba(226, 232, 240, 0.82); font-size: 15px; display: block; margin-bottom: 10px; transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid h6 { font-size: 14px; margin: 0 0 8px; }
.footer-grid h6 a { display: inline; }
.contact-block li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}
.contact-block .label { font-weight: 600; color: #E2E8F0; min-width: 70px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  color: rgba(148, 163, 184, 0.9);
}

/* Trending bar */
.trending-bar {
  background: var(--footer-bg);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trending-bar .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.trending-bar h3 {
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  margin: 0;
}
.trending-items {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  flex: 1;
  padding: 8px 0;
}
.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.trending-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.trending-item a { color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 0.2s var(--ease); }
.trending-item a:hover { color: var(--accent); }

/* Floating widgets */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  max-width: 400px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 14px; margin-bottom: 16px; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons .btn { flex: 1; padding: 10px 16px; font-size: 14px; }

.lang-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9997;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 6px 10px;
  min-width: 120px;
}
body.cookie-visible .lang-switcher { bottom: 140px; }

/* GTranslate dropdown inside language switcher */
.lang-switcher .gtranslate_wrapper {
  font-family: var(--font);
  position: relative;
}
.lang-switcher .gt_switcher {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--heading) !important;
  cursor: pointer;
  border: none !important;
  background: transparent !important;
  padding: 4px 6px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.lang-switcher .gt_switcher img {
  width: 24px !important;
  height: auto !important;
  border-radius: 4px;
}
.lang-switcher .gt_options {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  top: auto !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  min-width: 180px !important;
  padding: 6px 0 !important;
}
.lang-switcher .gt_options a {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--heading) !important;
  text-decoration: none !important;
}
.lang-switcher .gt_options a:hover {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
}
.lang-switcher .gt_options img {
  width: 22px !important;
}

/* Hide Google top banner bar; keep in-page translation */
.goog-te-banner-frame,
.skiptranslate iframe.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0 !important;
}
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.45);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-modal.open { display: flex; }
.search-modal form {
  width: 100%;
  max-width: 600px;
  display: flex;
  gap: 12px;
  padding: 0 24px;
}
.search-modal input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 24px;
  padding: 12px 0;
  outline: none;
}
.search-modal input:focus { border-color: var(--brand); }
.search-modal button {
  background: var(--brand);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-pill);
  color: #fff;
  transition: background 0.2s var(--ease);
}
.search-modal button:hover { background: var(--brand-dark); }
.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(420px, 90vw);
  height: 100%;
  background: rgba(11, 18, 32, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  padding: 28px 24px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-engines-group { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-engines-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
}
.mobile-engines-toggle .toggle-arrow {
  font-size: 14px;
  transition: transform 0.2s;
}
.mobile-engines-toggle.is-open .toggle-arrow { transform: rotate(180deg); }
.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-bottom: 8px;
}
.mobile-submenu.is-open { display: flex; }
.mobile-drawer .sub {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0 10px 16px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: none;
}
.mobile-drawer .sub:hover { color: var(--accent); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
  display: none;
}
.drawer-overlay.open { display: block; }

@media (max-width: 999px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .categories-grid,
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .about-hero, .m57-layout { grid-template-columns: 1fr; }
  .trust-cards { grid-template-columns: 1fr; }
}

@media (max-width: 689px) {
  .categories-grid,
  .products-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .logo-emblem {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .logo-type {
    padding-left: 10px;
    min-height: 38px;
    gap: 3px;
  }
  .logo-img,
  .logo-svg { height: 52px; width: auto; }
  .logo-title { font-size: 11px; letter-spacing: 0.12em; }
  .logo-subtitle { font-size: 7px; letter-spacing: 0.3em; }
}
