* {
    box-sizing: border-box;
}

:root {
    --bg: #181c20;
    --panel: #262c33;
    --line: rgba(255,255,255,0.08);
    --text: #f5f7f8;
    --text-soft: rgba(245,247,248,0.72);
    --accent: #f28c28;
    --accent-2: #ffab53;
    --shadow: 0 20px 60px rgba(0,0,0,0.28);
    --radius-lg: 30px;
    --container: 1240px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(24, 28, 32, 0.86), rgba(24, 28, 32, 0.92)),
        url('assets/images/hero-bg.jpg') center center / cover no-repeat fixed;
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
.site-shell { min-height: 100vh; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(24,28,32,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1b1f24; font-weight: 800; font-size: 18px;
    box-shadow: 0 10px 30px rgba(242,140,40,0.32);
}
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text strong { font-size: 20px; line-height: 1; }
.brand-text small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,247,248,0.55); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: rgba(245,247,248,0.82); font-size: 15px; }
.main-nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--accent-2); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px; border-radius: 16px;
    font-weight: 700; font-size: 14px; transition: 0.2s ease;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1b1f24; box-shadow: 0 12px 32px rgba(242,140,40,0.25);
}
.btn-outline { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text); }

.hero {
    position: relative; min-height: calc(100vh - 82px);
    display: flex; align-items: center; overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(242,140,40,0.22), transparent 26%),
        radial-gradient(circle at 15% 70%, rgba(242,140,40,0.12), transparent 18%),
        linear-gradient(90deg, rgba(24,28,32,0.92) 0%, rgba(24,28,32,0.76) 48%, rgba(24,28,32,0.54) 100%);
}
.hero-content {
    position: relative; z-index: 2; display: grid;
    grid-template-columns: 1.15fr 0.85fr; gap: 44px;
    align-items: end; padding-top: 80px; padding-bottom: 80px;
}
.hero-content-v2 {
    align-items: center;
}
.hero-side-panel {
    display: grid;
}
.hero-side-card {
    border-radius: 34px;
    padding: 28px;
}
.hero-side-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}
.hero-side-head strong {
    font-size: 24px;
}
.hero-side-head span {
    color: var(--text-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.hero-stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.hero-stat-box {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
}
.hero-stat-box small {
    display: block;
    color: var(--text-soft);
    margin-bottom: 8px;
}
.hero-stat-box strong {
    font-size: 30px;
    color: var(--accent-2);
}
.hero-side-note {
    margin-top: 18px;
    color: var(--text-soft);
    line-height: 1.7;
}
.hero-micro-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.hero-micro-points span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    color: rgba(245,247,248,0.88);
    font-size: 13px;
}

.eyebrow {
    display: inline-flex; align-items: center; padding: 10px 16px;
    border-radius: 999px; background: rgba(242,140,40,0.12);
    border: 1px solid rgba(242,140,40,0.24); color: #ffd0a0;
    text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 700;
}

.hero-copy h1, .vehicle-detail-copy h1 {
    margin: 22px 0 18px; font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98; letter-spacing: -0.03em;
}
.hero-copy h1 span { color: var(--accent-2); }

.hero-copy p, .section-head p, .lead, .feature-card p, .vehicle-body p,
.cta-box p, .detail-paragraph, .vehicle-detail-lead {
    color: var(--text-soft); line-height: 1.7;
}
.hero-copy p { max-width: 760px; font-size: 18px; }

.hero-actions, .button-row, .cta-actions, .vehicle-detail-actions, .section-footer-action {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px;
}

.glass-card {
    background: rgba(255,255,255,0.055); backdrop-filter: blur(18px);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}

.section { padding: 96px 0; }
.section-alt {
    background: rgba(29,34,39,0.72);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-head {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px; align-items: end; margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }

.cards-grid, .feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.vehicle-card, .feature-card, .detail-card, .empty-box {
    background: rgba(38,44,51,0.94); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.vehicle-image-frame {
    height: 250px;
    background: linear-gradient(135deg, rgba(242,140,40,0.15), rgba(255,255,255,0.02)), linear-gradient(180deg, #373e46, #21272d);
}
.vehicle-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vehicle-body, .feature-card, .cta-box, .detail-card, .empty-box {
    padding: 28px;
}
.vehicle-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.badge {
    display: inline-flex; padding: 7px 12px; border-radius: 999px;
    background: rgba(242,140,40,0.12); border: 1px solid rgba(242,140,40,0.2);
    color: #ffc88f; font-size: 12px; font-weight: 700;
}
.status-available { background: rgba(44,153,93,0.14); border-color: rgba(44,153,93,0.25); color: #9ef0be; }
.status-sold { background: rgba(168,82,82,0.16); border-color: rgba(168,82,82,0.28); color: #ffb6b6; }
.status-reference { background: rgba(80,112,170,0.18); border-color: rgba(80,112,170,0.28); color: #bdd0ff; }
.status-project { background: rgba(242,140,40,0.12); border-color: rgba(242,140,40,0.2); color: #ffc88f; }

.vehicle-price-chip, .vehicle-price-line {
    color: var(--accent-2);
    font-weight: 800;
}
.vehicle-price-chip {
    white-space: nowrap;
    font-size: 14px;
}
.vehicle-price-line {
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 18px;
}
.vehicle-meta-line, .vehicle-card-meta {
    margin-top: 10px;
    color: #ffd0a0;
    font-weight: 700;
}
.vehicle-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.vehicle-card-meta span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    color: rgba(245,247,248,0.86);
    font-size: 12px;
}
.vehicle-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.vehicle-card-button {
    margin-top: 0;
}

.two-column { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: center; }
.video-preview {
    border-radius: 34px;
    background: rgba(38,44,51,0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 28px;
}
.video-box {
    min-height: 280px; border-radius: 26px; display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #394048, #20262d);
    color: rgba(245,247,248,0.72); font-weight: 700; letter-spacing: 0.05em;
    text-align: center; padding: 20px;
}
.episode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.episode-card {
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    border-radius: 18px; padding: 18px;
}
.episode-card strong { display: block; margin-bottom: 7px; }
.feature-card h3, .vehicle-body h3, .detail-card h2, .cta-box h2 { margin-top: 0; }

.cta-section { padding-top: 0; }
.cta-box {
    background: rgba(38,44,51,0.95); border: 1px solid var(--line);
    border-radius: 34px; box-shadow: var(--shadow);
    display: flex; justify-content: space-between; gap: 28px; align-items: center;
}

.site-footer { padding: 26px 0 40px; }
.footer-row {
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    color: rgba(245,247,248,0.72); font-size: 14px;
}
.footer-row strong { display: block; color: var(--text); margin-bottom: 4px; }
.footer-links { display: flex; gap: 18px; }

.showroom-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.filter-pill {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    color: rgba(245,247,248,0.84);
    font-weight: 700;
    font-size: 14px;
}
.filter-pill.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1b1f24;
    border-color: transparent;
}

.vehicle-detail-hero {
    display: grid; grid-template-columns: 1.08fr 0.92fr;
    gap: 28px; align-items: stretch; margin-bottom: 28px;
}
.vehicle-detail-image-wrap {
    min-height: 460px; border-radius: 34px;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(242,140,40,0.15), rgba(255,255,255,0.02)), linear-gradient(180deg, #373e46, #21272d);
}
.vehicle-detail-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vehicle-detail-copy {
    background: rgba(38,44,51,0.94); border: 1px solid var(--line);
    border-radius: 34px; box-shadow: var(--shadow); padding: 34px;
}
.vehicle-detail-copy h1 { font-size: clamp(34px, 5vw, 58px); }
.vehicle-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.vehicle-detail-meta span {
    display: inline-flex; padding: 8px 13px; border-radius: 999px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    font-size: 13px; color: rgba(245,247,248,0.86);
}
.vehicle-detail-price {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--accent-2); font-weight: 800; margin-top: 24px;
}
.vehicle-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-card-wide { grid-column: 1 / -1; }
.detail-list { display: grid; gap: 10px; }
.detail-list div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.detail-list div:last-child { border-bottom: 0; }
.detail-list span { color: var(--text-soft); }
.vehicle-video-box { min-height: 220px; margin-top: 18px; }

.empty-box { text-align: center; font-size: 18px; }

@media (max-width: 1080px) {
    .hero-content, .section-head, .two-column, .cards-grid, .feature-grid, .vehicle-detail-hero, .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }
    .hero-content { gap: 28px; }
    .hero-stats-grid-v2, .episode-grid { grid-template-columns: 1fr; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .detail-card-wide { grid-column: auto; }
}

@media (max-width: 820px) {
    body { background-attachment: scroll; }
    .main-nav, .nav-cta { display: none; }
    .nav-bar { min-height: 76px; }
    .section { padding: 72px 0; }
    .hero { min-height: auto; }
    .hero-content { padding-top: 52px; padding-bottom: 52px; }
    .hero-copy p { font-size: 16px; }
    .vehicle-detail-copy { padding: 24px; }
    .vehicle-detail-image-wrap { min-height: 320px; }
}

@media (max-width: 560px) {
    .container { width: min(var(--container), calc(100% - 22px)); }
    .brand-text strong { font-size: 18px; }
    .vehicle-body, .feature-card, .video-preview, .cta-box, .detail-card, .empty-box, .hero-side-card { padding: 22px; }
    .btn { width: 100%; }
    .hero-actions, .button-row, .cta-actions, .vehicle-detail-actions, .section-footer-action, .vehicle-card-actions { flex-direction: column; }
    .site-footer { padding-bottom: 30px; }
    .footer-row { flex-direction: column; align-items: flex-start; }
    .vehicle-detail-meta { flex-direction: column; }
}


/* Aggressive image size fix v2 */
.vehicle-image-frame{
    height:180px !important;
    max-height:180px !important;
    overflow:hidden !important;
}
.vehicle-image-real{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
}
.vehicle-card{
    display:flex !important;
    flex-direction:column !important;
}
.vehicle-body{
    flex:1 1 auto !important;
}
.vehicle-detail-image-wrap{
    min-height:auto !important;
    height:420px !important;
    max-height:420px !important;
    overflow:hidden !important;
}
.vehicle-detail-image-real{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
}
@media (max-width:820px){
 .vehicle-image-frame{
    height:160px !important;
    max-height:160px !important;
 }
 .vehicle-detail-image-wrap{
    height:280px !important;
    max-height:280px !important;
 }
}


/* JKGarage Scroll Fix 2 – fixed header/footer, only content scrolls */
html, body { height:100%; }
body { height:100vh; overflow:hidden; }
.site-shell { height:100vh; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; }
.site-header { position:relative; top:auto; z-index:100; }
.site-shell > main { min-height:0; overflow-y:scroll; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; }
.site-footer { position:relative; z-index:90; flex:none; padding:14px 0 18px; background:rgba(24,28,32,.94); border-top:1px solid rgba(255,255,255,.06); backdrop-filter:blur(12px); }
.site-shell > main .hero { min-height:100%; }
/* Public subpages that use main outside .site-shell */
body > main { min-height:0; overflow-y:scroll; overflow-x:hidden; }
@media(max-width:820px){ .site-shell{grid-template-rows:auto minmax(0,1fr) auto;} }


/* =========================================================
   JKGarage FRONT PAGE BLUE / WHITE V1 – 04.09.2026
   Scope: homepage only (unique #start hero)
   Golf 2 background intentionally retained.
   ========================================================= */
body:has(#start) {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --line: #dce4ee;
    --text: #111827;
    --text-soft: #64748b;
    --accent: #0b63e5;
    --accent-2: #0754c4;
    --shadow: 0 12px 34px rgba(15, 23, 42, .08);
    background: #f4f7fb !important;
    color: #111827 !important;
}

/* HEADER */
body:has(#start) .site-header {
    background: rgba(7, 18, 31, .96) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    backdrop-filter: blur(14px);
}

body:has(#start) .nav-bar {
    min-height: 64px !important;
}

body:has(#start) .brand {
    gap: 3px !important;
}

body:has(#start) .brand-mark {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #0b63e5 !important;
    font-size: 27px !important;
    font-weight: 900 !important;
    font-style: italic;
    letter-spacing: -2px;
}

body:has(#start) .brand-text strong {
    font-size: 0 !important;
}

body:has(#start) .brand-text strong::after {
    content: "Garage";
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.1px;
    color: #ffffff;
}

body:has(#start) .brand-text small {
    display: none !important;
}

body:has(#start) .main-nav {
    gap: 30px !important;
}

body:has(#start) .main-nav a {
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 750;
    position: relative;
}

body:has(#start) .main-nav a:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    background: #0b63e5;
}

body:has(#start) .main-nav a:hover {
    color: #77aaff !important;
}

body:has(#start) .nav-cta {
    min-height: 36px !important;
    padding: 0 15px !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.22) !important;
}

/* HERO – Golf 2 stays */
body:has(#start) .hero#start {
    min-height: 570px !important;
    background:
        url('assets/images/hero-bg.jpg') center 47% / cover no-repeat !important;
}

body:has(#start) .hero#start .hero-overlay {
    background:
        linear-gradient(90deg,
            rgba(4, 17, 30, .96) 0%,
            rgba(6, 24, 42, .86) 33%,
            rgba(7, 28, 48, .48) 60%,
            rgba(7, 25, 42, .14) 100%) !important;
}

body:has(#start) .hero#start .hero-content {
    grid-template-columns: minmax(0, 650px) 1fr !important;
    align-items: center !important;
    min-height: 570px;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

body:has(#start) .hero#start .hero-side-panel {
    display: none !important;
}

body:has(#start) .hero#start .jk-v3-hero-copy {
    max-width: 650px !important;
}

body:has(#start) .hero#start .eyebrow {
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    color: #70a7ff !important;
    font-size: 11px !important;
    letter-spacing: .16em !important;
}

body:has(#start) .hero#start .hero-copy h1 {
    margin: 16px 0 18px !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

body:has(#start) .hero#start .hero-copy h1 span {
    display: none !important;
}

body:has(#start) .hero#start .hero-copy h1::before {
    content: "Fahrzeuge mit\A Leidenschaft.";
    white-space: pre;
    display: block;
    color: #ffffff;
    font-size: clamp(46px, 5.4vw, 70px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 850;
}

body:has(#start) .hero#start .hero-copy p {
    max-width: 590px !important;
    margin-bottom: 0;
    color: rgba(255,255,255,.88) !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}

body:has(#start) .hero#start .hero-actions {
    margin-top: 26px !important;
}

body:has(#start) .hero#start .btn {
    min-height: 44px !important;
    border-radius: 7px !important;
    padding: 0 19px !important;
}

body:has(#start) .hero#start .btn-primary {
    background: #0b63e5 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(11,99,229,.24) !important;
}

body:has(#start) .hero#start .btn-outline {
    background: #ffffff !important;
    color: #162033 !important;
    border-color: #ffffff !important;
}

body:has(#start) .hero#start .hero-micro-points,
body:has(#start) .hero#start .jk-v3-topline {
    display: none !important;
}

/* GENERAL LIGHT CONTENT */
body:has(#start) .section {
    padding: 68px 0 !important;
    background: #ffffff;
    color: #111827;
}

body:has(#start) .section:nth-of-type(even):not(#start) {
    background: #f7f9fc;
}

body:has(#start) .section-head {
    margin-bottom: 26px !important;
}

body:has(#start) .section-head h2 {
    margin: 7px 0 0 !important;
    color: #111827 !important;
    font-size: clamp(27px, 3vw, 38px) !important;
    letter-spacing: -.025em;
}

body:has(#start) .section-head p,
body:has(#start) .jk-v3-story-card p,
body:has(#start) .jk-v3-trust-card p,
body:has(#start) .jk-v3-cta-card p,
body:has(#start) .jk-cert-card p,
body:has(#start) .jk-cert-footer p {
    color: #64748b !important;
}

body:has(#start) .section .eyebrow {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #0b63e5 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;
}

/* VEHICLES – like mockup cards */
body:has(#start) #showroom-preview {
    background: #ffffff !important;
}

body:has(#start) #showroom-preview .section-head {
    grid-template-columns: 1fr auto !important;
    align-items: end;
}

body:has(#start) #showroom-preview .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

body:has(#start) #showroom-preview .vehicle-card {
    background: #ffffff !important;
    border: 1px solid #dce4ee !important;
    border-radius: 7px !important;
    box-shadow: 0 6px 22px rgba(15,23,42,.055) !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

body:has(#start) #showroom-preview .vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15,23,42,.10) !important;
}

body:has(#start) #showroom-preview .vehicle-image-frame {
    height: 190px !important;
    background: #eef2f7 !important;
}

body:has(#start) #showroom-preview .vehicle-body {
    padding: 15px 16px 17px !important;
}

body:has(#start) #showroom-preview .vehicle-card-top {
    margin-bottom: 9px !important;
}

body:has(#start) #showroom-preview .badge {
    padding: 5px 8px !important;
    border-radius: 4px !important;
    background: #eaf2ff !important;
    border-color: #cfe0ff !important;
    color: #0b63e5 !important;
    font-size: 9px !important;
    text-transform: uppercase;
}

body:has(#start) #showroom-preview .vehicle-price-chip {
    color: #0b63e5 !important;
    font-size: 15px !important;
}

body:has(#start) #showroom-preview .vehicle-body h3 {
    margin: 0 0 8px !important;
    color: #111827 !important;
    font-size: 16px !important;
}

body:has(#start) #showroom-preview .vehicle-body p {
    display: none !important;
}

body:has(#start) #showroom-preview .vehicle-card-meta {
    gap: 5px !important;
    margin: 0 0 13px !important;
}

body:has(#start) #showroom-preview .vehicle-card-meta span {
    padding: 0 7px 0 0 !important;
    border: 0 !important;
    border-right: 1px solid #d7dee8 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #6b7280 !important;
    font-size: 10px !important;
}

body:has(#start) #showroom-preview .vehicle-card-meta span:last-child {
    border-right: 0 !important;
}

body:has(#start) #showroom-preview .vehicle-card-button {
    min-height: 36px !important;
    width: 100%;
    border-radius: 6px !important;
    background: #0b63e5 !important;
    color: #fff !important;
    box-shadow: none !important;
}

body:has(#start) #showroom-preview .section-footer-action {
    justify-content: flex-end;
    margin-top: 20px !important;
}

body:has(#start) #showroom-preview .section-footer-action .btn {
    color: #0b63e5 !important;
    border: 0 !important;
    background: transparent !important;
    padding-right: 0;
}

/* ABOUT + TRUST CARDS */
body:has(#start) .jk-v3-story-card,
body:has(#start) .jk-v3-trust-card,
body:has(#start) .jk-v3-cta-card,
body:has(#start) .jk-cert-card {
    background: #ffffff !important;
    border: 1px solid #dce4ee !important;
    border-radius: 12px !important;
    box-shadow: 0 7px 22px rgba(15,23,42,.05) !important;
    color: #111827 !important;
}

body:has(#start) .jk-v3-story-card strong,
body:has(#start) .jk-v3-trust-card strong {
    background: #eaf2ff !important;
    color: #0b63e5 !important;
    border-radius: 10px !important;
}

body:has(#start) .jk-v3-story-card h3,
body:has(#start) .jk-v3-trust-card h3,
body:has(#start) .jk-v3-cta-card h3,
body:has(#start) .jk-v3-cta-card h2,
body:has(#start) .jk-cert-card h3 {
    color: #111827 !important;
}

/* JK DIAGNOSTIC */
body:has(#start) .jkdiag-section {
    background: #f5f8fc !important;
}

body:has(#start) .jkdiag-hero,
body:has(#start) .jkdiag-panel {
    background: #ffffff !important;
    border: 1px solid #dce4ee !important;
    box-shadow: 0 8px 28px rgba(15,23,42,.06) !important;
    color: #111827 !important;
}

body:has(#start) .jkdiag-hero h2,
body:has(#start) .jkdiag-panel h3,
body:has(#start) .jkdiag-status strong {
    color: #111827 !important;
}

body:has(#start) .jkdiag-hero p,
body:has(#start) .jkdiag-status span,
body:has(#start) .jkdiag-feature small,
body:has(#start) .jkdiag-note {
    color: #64748b !important;
}

body:has(#start) .jkdiag-status div,
body:has(#start) .jkdiag-feature {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body:has(#start) .jkdiag-feature b {
    color: #0b63e5 !important;
}

body:has(#start) .jkdiag-note {
    border-left-color: #0b63e5 !important;
    background: #eff6ff !important;
}

body:has(#start) .jkdiag-badge {
    background: #eaf2ff !important;
    border-color: #cfe0ff !important;
    color: #0b63e5 !important;
}

/* CERTIFICATES */
body:has(#start) .jk-cert-section {
    background: #ffffff !important;
}

body:has(#start) .jk-cert-card span {
    background: #eaf2ff !important;
    border-color: #cfe0ff !important;
    color: #0b63e5 !important;
}

body:has(#start) .jk-cert-footer {
    background: #f8fafc !important;
    border-color: #dce4ee !important;
}

/* CONTACT */
body:has(#start) #kontakt {
    background: #f5f8fc !important;
}

body:has(#start) .jk-v3-contact-item {
    background: #f8fafc !important;
    border-color: #dce4ee !important;
    color: #111827 !important;
}

body:has(#start) .jk-v3-contact-item span {
    color: #64748b !important;
}

/* FOOTER */
body:has(#start) .site-footer {
    padding: 38px 0 26px !important;
    background: #07131f !important;
    color: #dbe4ee !important;
}

body:has(#start) .footer-row {
    color: #9facbb !important;
}

body:has(#start) .footer-row strong {
    color: #ffffff !important;
    font-size: 22px;
    font-style: italic;
}

body:has(#start) .footer-links {
    flex-wrap: wrap;
}

body:has(#start) .footer-links a {
    color: #d7e0ea !important;
}

body:has(#start) .footer-links a:hover,
body:has(#start) .jk-footer-credit a {
    color: #70a7ff !important;
}

body:has(#start) .jk-footer-credit {
    max-width: var(--container);
    width: min(var(--container), calc(100% - 32px));
    margin: 24px auto 0 !important;
    color: #8b99a8 !important;
    border-top-color: rgba(255,255,255,.10) !important;
}

/* Responsive */
@media (max-width: 1100px) {
    body:has(#start) #showroom-preview .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    body:has(#start) .hero#start {
        min-height: 530px !important;
        background-position: 63% center !important;
    }

    body:has(#start) .hero#start .hero-content {
        min-height: 530px;
        grid-template-columns: 1fr !important;
        align-items: end !important;
        padding-bottom: 52px !important;
    }

    body:has(#start) .hero#start .hero-overlay {
        background:
            linear-gradient(90deg, rgba(4,17,30,.94) 0%, rgba(4,17,30,.74) 65%, rgba(4,17,30,.38) 100%) !important;
    }

    body:has(#start) .hero#start .hero-copy h1::before {
        font-size: clamp(42px, 11vw, 60px);
    }

    body:has(#start) .section-head {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    body:has(#start) #showroom-preview .cards-grid {
        grid-template-columns: 1fr !important;
    }

    body:has(#start) #showroom-preview .vehicle-image-frame {
        height: 220px !important;
    }

    body:has(#start) .hero#start .hero-actions .btn {
        width: auto !important;
    }
}


/* =========================================================
   JKGarage PUBLIC BLUE / WHITE V2 – Subpages
   Applies to public pages, excludes backend/login.
   ========================================================= */
body:not(.backend-body):not(.backend-login-body) {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --line: #dce4ee;
    --text: #111827;
    --text-soft: #64748b;
    --accent: #0b63e5;
    --accent-2: #0754c4;
    --shadow: 0 10px 30px rgba(15,23,42,.075);
    background: #f4f7fb !important;
    color: #111827 !important;
}

body:not(.backend-body):not(.backend-login-body) a {
    color: inherit;
}

/* Shared public header */
body:not(.backend-body):not(.backend-login-body) .site-header {
    background: rgba(7,18,31,.97) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 8px 26px rgba(2,8,18,.10);
    backdrop-filter: blur(14px);
}

body:not(.backend-body):not(.backend-login-body) .nav-bar,
body:not(.backend-body):not(.backend-login-body) .header-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    min-height: 64px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

body:not(.backend-body):not(.backend-login-body) .brand {
    display: inline-flex;
    align-items: center;
    gap: 3px !important;
}

body:not(.backend-body):not(.backend-login-body) .brand-mark {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #0b63e5 !important;
    font-size: 27px !important;
    font-weight: 900 !important;
    font-style: italic;
    letter-spacing: -2px;
}

body:not(.backend-body):not(.backend-login-body) .brand-text strong {
    font-size: 0 !important;
}

body:not(.backend-body):not(.backend-login-body) .brand-text strong::after {
    content: "Garage";
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.1px;
    color: #ffffff;
}

body:not(.backend-body):not(.backend-login-body) .brand-text small {
    display: none !important;
}

body:not(.backend-body):not(.backend-login-body) .main-nav {
    display: flex;
    align-items: center;
    gap: 26px !important;
}

body:not(.backend-body):not(.backend-login-body) .main-nav a {
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 750;
}

body:not(.backend-body):not(.backend-login-body) .main-nav a:hover,
body:not(.backend-body):not(.backend-login-body) .main-nav a.active {
    color: #78aaff !important;
}

body:not(.backend-body):not(.backend-login-body) .nav-cta {
    min-height: 36px !important;
    border-radius: 8px !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.20) !important;
    background: transparent !important;
}

/* Shared public buttons */
body:not(.backend-body):not(.backend-login-body) .btn {
    border-radius: 8px !important;
}

body:not(.backend-body):not(.backend-login-body) .btn-primary {
    background: #0b63e5 !important;
    color: #fff !important;
    border-color: #0b63e5 !important;
    box-shadow: 0 8px 20px rgba(11,99,229,.18) !important;
}

body:not(.backend-body):not(.backend-login-body) .btn-outline {
    background: #ffffff !important;
    color: #172033 !important;
    border-color: #d1dbe7 !important;
}

body:not(.backend-body):not(.backend-login-body) .btn-outline:hover {
    background: #f8fafc !important;
    border-color: #aebdce !important;
}

/* General public page headings */
body:not(.backend-body):not(.backend-login-body) main,
body:not(.backend-body):not(.backend-login-body) .legal-shell {
    color: #111827;
}

body:not(.backend-body):not(.backend-login-body) .section-head h2,
body:not(.backend-body):not(.backend-login-body) main h1,
body:not(.backend-body):not(.backend-login-body) main h2,
body:not(.backend-body):not(.backend-login-body) main h3 {
    color: #111827;
}

body:not(.backend-body):not(.backend-login-body) .section-head p,
body:not(.backend-body):not(.backend-login-body) main p,
body:not(.backend-body):not(.backend-login-body) main li {
    color: #64748b;
}

body:not(.backend-body):not(.backend-login-body) .eyebrow {
    background: #eaf2ff !important;
    border-color: #cfe0ff !important;
    color: #0b63e5 !important;
}

/* Showroom */
body:not(.backend-body):not(.backend-login-body) .showroom-page,
body:not(.backend-body):not(.backend-login-body) .parts-page,
body:not(.backend-body):not(.backend-login-body) .part-page,
body:not(.backend-body):not(.backend-login-body) .cert-page {
    padding-top: 112px !important;
    background: #f4f7fb !important;
}

body:not(.backend-body):not(.backend-login-body) .showroom-filter-bar {
    gap: 9px;
}

body:not(.backend-body):not(.backend-login-body) .filter-pill {
    background: #fff !important;
    color: #475569 !important;
    border-color: #d7e1ec !important;
    border-radius: 8px !important;
}

body:not(.backend-body):not(.backend-login-body) .filter-pill.active {
    background: #0b63e5 !important;
    border-color: #0b63e5 !important;
    color: #fff !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-card {
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-radius: 10px !important;
    box-shadow: 0 7px 24px rgba(15,23,42,.06) !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-image-frame {
    background: #edf2f7 !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-body h3 {
    color: #111827 !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-body p {
    color: #64748b !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-price-chip,
body:not(.backend-body):not(.backend-login-body) .vehicle-price-line,
body:not(.backend-body):not(.backend-login-body) .vehicle-detail-price {
    color: #0b63e5 !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-card-meta span,
body:not(.backend-body):not(.backend-login-body) .vehicle-detail-meta span {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #e0e7ef !important;
}

body:not(.backend-body):not(.backend-login-body) .badge,
body:not(.backend-body):not(.backend-login-body) .status-reference,
body:not(.backend-body):not(.backend-login-body) .status-project {
    background: #eaf2ff !important;
    border-color: #cfe0ff !important;
    color: #0b63e5 !important;
}

body:not(.backend-body):not(.backend-login-body) .status-available {
    background: #ecfdf3 !important;
    border-color: #bbf7d0 !important;
    color: #167445 !important;
}

body:not(.backend-body):not(.backend-login-body) .status-sold {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #9f1239 !important;
}

/* Vehicle detail */
body:not(.backend-body):not(.backend-login-body) .vehicle-detail-copy,
body:not(.backend-body):not(.backend-login-body) .detail-card,
body:not(.backend-body):not(.backend-login-body) .empty-box,
body:not(.backend-body):not(.backend-login-body) .video-preview {
    background: #fff !important;
    border-color: #dce4ee !important;
    box-shadow: 0 8px 26px rgba(15,23,42,.06) !important;
    color: #111827 !important;
}

body:not(.backend-body):not(.backend-login-body) .vehicle-detail-image-wrap {
    background: #edf2f7 !important;
    border-color: #dce4ee !important;
}

body:not(.backend-body):not(.backend-login-body) .detail-list div {
    border-color: #e5ebf2 !important;
}

body:not(.backend-body):not(.backend-login-body) .detail-list span,
body:not(.backend-body):not(.backend-login-body) .vehicle-detail-lead,
body:not(.backend-body):not(.backend-login-body) .detail-paragraph {
    color: #64748b !important;
}

body:not(.backend-body):not(.backend-login-body) .jk-contact-card {
    background: linear-gradient(135deg,#ffffff,#eef5ff) !important;
    border-color: #cfe0ff !important;
    box-shadow: 0 8px 26px rgba(15,23,42,.07) !important;
}

body:not(.backend-body):not(.backend-login-body) .jk-contact-kicker {
    color: #0b63e5 !important;
}

body:not(.backend-body):not(.backend-login-body) .jk-contact-btn-primary {
    background: #0b63e5 !important;
    border-color: #0b63e5 !important;
    color: #fff !important;
}

body:not(.backend-body):not(.backend-login-body) .jk-contact-btn-secondary {
    background: #fff !important;
    border-color: #d6e0eb !important;
    color: #172033 !important;
}

/* Parts market + part detail */
body:not(.backend-body):not(.backend-login-body) .part-card,
body:not(.backend-body):not(.backend-login-body) .part-panel {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #dce4ee !important;
    box-shadow: 0 7px 24px rgba(15,23,42,.055);
}

body:not(.backend-body):not(.backend-login-body) .part-card {
    border-radius: 10px !important;
}

body:not(.backend-body):not(.backend-login-body) .part-card-type,
body:not(.backend-body):not(.backend-login-body) .part-price {
    color: #0b63e5 !important;
}

body:not(.backend-body):not(.backend-login-body) .parts-search input {
    background: #fff !important;
    color: #111827 !important;
    border-color: #cbd5e1 !important;
}

body:not(.backend-body):not(.backend-login-body) .parts-search input:focus {
    outline: none;
    border-color: #0b63e5 !important;
    box-shadow: 0 0 0 3px rgba(11,99,229,.10);
}

body:not(.backend-body):not(.backend-login-body) .part-info div {
    background: #f8fafc !important;
    border: 1px solid #e5ebf2;
}

body:not(.backend-body):not(.backend-login-body) .part-info span,
body:not(.backend-body):not(.backend-login-body) .part-legal-price,
body:not(.backend-body):not(.backend-login-body) .part-price-note {
    color: #64748b !important;
}

body:not(.backend-body):not(.backend-login-body) .part-contract-note {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #475569 !important;
}

/* Certificates */
body:not(.backend-body):not(.backend-login-body) .cert-card {
    background: #fff !important;
    border-color: #dce4ee !important;
    box-shadow: 0 8px 26px rgba(15,23,42,.06) !important;
    border-radius: 12px !important;
}

body:not(.backend-body):not(.backend-login-body) .cert-copy span {
    background: #eaf2ff !important;
    border-color: #cfe0ff !important;
    color: #0b63e5 !important;
}

body:not(.backend-body):not(.backend-login-body) .cert-copy p,
body:not(.backend-body):not(.backend-login-body) .cert-intro p,
body:not(.backend-body):not(.backend-login-body) .cert-note {
    color: #64748b !important;
}

body:not(.backend-body):not(.backend-login-body) .cert-note {
    background: #f8fafc !important;
    border-color: #dce4ee !important;
}

/* Legal pages */
body:not(.backend-body):not(.backend-login-body) .legal-shell {
    min-height: 100vh;
    padding: 96px 0 70px !important;
    background: linear-gradient(180deg,#eef4fb 0,#f7f9fc 220px,#f7f9fc 100%) !important;
}

body:not(.backend-body):not(.backend-login-body) .legal-card {
    background: #fff !important;
    color: #111827 !important;
    border: 1px solid #dce4ee !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 34px rgba(15,23,42,.07) !important;
}

body:not(.backend-body):not(.backend-login-body) .legal-card h1,
body:not(.backend-body):not(.backend-login-body) .legal-card h2,
body:not(.backend-body):not(.backend-login-body) .legal-card strong {
    color: #111827 !important;
}

body:not(.backend-body):not(.backend-login-body) .legal-card p,
body:not(.backend-body):not(.backend-login-body) .legal-card li {
    color: #526071 !important;
}

body:not(.backend-body):not(.backend-login-body) .legal-card a {
    color: #0b63e5 !important;
}

body:not(.backend-body):not(.backend-login-body) .legal-alert,
body:not(.backend-body):not(.backend-login-body) .legal-note {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #365b87 !important;
}

/* Shared public footer */
body:not(.backend-body):not(.backend-login-body) .site-footer {
    background: #07131f !important;
    color: #dbe4ee !important;
    border-top: 0 !important;
}

body:not(.backend-body):not(.backend-login-body) .footer-row,
body:not(.backend-body):not(.backend-login-body) .footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #93a1b2 !important;
}

body:not(.backend-body):not(.backend-login-body) .footer-row strong,
body:not(.backend-body):not(.backend-login-body) .footer-inner strong {
    display: block;
    color: #fff !important;
    margin-bottom: 4px;
}

body:not(.backend-body):not(.backend-login-body) .footer-links a {
    color: #d5dee8 !important;
}

body:not(.backend-body):not(.backend-login-body) .footer-links a:hover {
    color: #78aaff !important;
}

@media (max-width: 820px) {
    body:not(.backend-body):not(.backend-login-body) .main-nav {
        display: none !important;
    }

    body:not(.backend-body):not(.backend-login-body) .nav-bar,
    body:not(.backend-body):not(.backend-login-body) .header-inner {
        min-height: 60px !important;
    }

    body:not(.backend-body):not(.backend-login-body) .footer-row,
    body:not(.backend-body):not(.backend-login-body) .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   JKGarage MOBILE MENU + COOKIE BLUE FIX V3 – 04.09.2026
   ========================================================= */

/* Force cookie banner to new blue/white style even if old inline cookie CSS is cached */
.jk-cookie-banner {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    z-index: 99999 !important;
}
.jk-cookie-inner {
    max-width: 1120px !important;
    margin: auto !important;
    padding: 16px 18px !important;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d7e1ec !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 55px rgba(15,23,42,.18) !important;
}
.jk-cookie-inner strong {
    color: #111827 !important;
}
.jk-cookie-inner span {
    color: #64748b !important;
}
.jk-cookie-inner a {
    color: #0b63e5 !important;
    font-weight: 750 !important;
}
.jk-cookie-inner button,
#jk-cookie-ok {
    background: #0b63e5 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(11,99,229,.18) !important;
}
.jk-cookie-inner button:hover,
#jk-cookie-ok:hover {
    background: #0754c4 !important;
}

/* Mobile menu */
.jk-mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.jk-mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform .2s ease, opacity .2s ease;
}
.jk-mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.jk-mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.jk-mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.jk-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(2,8,18,.54);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.jk-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.jk-mobile-menu-panel {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 14px 16px 18px;
    background: #07131f;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 40px rgba(2,8,18,.28);
    transform: translateY(-10px);
    transition: transform .2s ease;
}
.jk-mobile-menu.is-open .jk-mobile-menu-panel {
    transform: translateY(0);
}
.jk-mobile-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    color: #f8fafc !important;
    font-size: 15px;
    font-weight: 750;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.jk-mobile-menu-panel a:last-child {
    border-bottom: 0;
}
.jk-mobile-menu-panel a:hover {
    background: rgba(255,255,255,.06);
    color: #78aaff !important;
}
.jk-mobile-menu-cta {
    margin-top: 10px;
    justify-content: center;
    background: #0b63e5 !important;
    color: #fff !important;
    border: 0 !important;
}
body.jk-mobile-menu-open {
    overflow: hidden !important;
}

@media (max-width: 820px) {
    body:not(.backend-body):not(.backend-login-body) .site-header .main-nav,
    body:not(.backend-body):not(.backend-login-body) .site-header .nav-cta {
        display: none !important;
    }

    .jk-mobile-menu-toggle {
        display: inline-flex !important;
        margin-left: auto;
    }

    body:not(.backend-body):not(.backend-login-body) .nav-bar,
    body:not(.backend-body):not(.backend-login-body) .header-inner {
        min-height: 64px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .jk-cookie-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 15px !important;
    }
    .jk-cookie-inner button,
    #jk-cookie-ok {
        width: 100% !important;
        min-height: 44px !important;
    }
}


/* =========================================================
   JKGarage FRONTEND V4 – focused dealer front page
   ========================================================= */
body.front-v4-body {
    background:#f4f7fb!important;
    color:#111827!important;
}

body.front-v4-body .front-v4-header .nav-cta {
    background:#0b63e5!important;
    border-color:#0b63e5!important;
    color:#fff!important;
}

.front-v4-main {
    background:#f4f7fb;
}

.front-v4-hero {
    position:relative;
    min-height:620px;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:url('assets/images/hero-bg.jpg') center 48% / cover no-repeat;
}

.front-v4-hero-overlay {
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(4,17,30,.96) 0%,rgba(6,24,42,.88) 38%,rgba(7,28,48,.54) 67%,rgba(7,25,42,.22) 100%);
}

.front-v4-hero-grid {
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(320px,.65fr);
    gap:54px;
    align-items:center;
    padding-top:68px;
    padding-bottom:68px;
}

body.front-v4-body .front-v4-hero .eyebrow {
    padding:0!important;
    border:0!important;
    background:none!important;
    color:#7fb0ff!important;
    letter-spacing:.14em;
    font-size:11px;
    font-weight:850;
    text-transform:uppercase;
}

body.front-v4-body .front-v4-hero h1 {
    max-width:760px;
    margin:16px 0 18px;
    color:#fff!important;
    font-size:clamp(42px,6vw,74px);
    line-height:.98;
    letter-spacing:-.045em;
}

body.front-v4-body .front-v4-hero h1 span {
    color:#78aaff;
}

body.front-v4-body .front-v4-hero-copy > p {
    max-width:680px;
    margin:0;
    color:#d9e2ed!important;
    font-size:17px;
    line-height:1.7;
}

.front-v4-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:28px;
}

body.front-v4-body .front-v4-hero .btn-outline {
    background:rgba(255,255,255,.08)!important;
    border-color:rgba(255,255,255,.20)!important;
    color:#fff!important;
}

.front-v4-points {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:22px;
}

.front-v4-points span {
    display:inline-flex;
    padding:7px 10px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:999px;
    background:rgba(255,255,255,.06);
    color:#dce7f3;
    font-size:11px;
    font-weight:700;
}

.front-v4-stat-card {
    padding:24px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    background:rgba(7,18,31,.76);
    backdrop-filter:blur(14px);
    box-shadow:0 24px 60px rgba(0,0,0,.26);
}

.front-v4-stat-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.front-v4-stat-head small {
    display:block;
    margin-bottom:4px;
    color:#91a4ba;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.front-v4-stat-head strong {
    color:#fff;
    font-size:20px;
}

.front-v4-stat-head a {
    color:#8bb6ff!important;
    font-size:12px;
    font-weight:800;
}

.front-v4-stat-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.front-v4-stat-grid > div {
    padding:13px 10px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:11px;
    background:rgba(255,255,255,.045);
    text-align:center;
}

.front-v4-stat-grid span {
    display:block;
    color:#91a4ba;
    font-size:10px;
    margin-bottom:5px;
}

.front-v4-stat-grid strong {
    color:#fff;
    font-size:23px;
}

body.front-v4-body .front-v4-stat-card > p {
    margin:16px 0 0;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.09);
    color:#aebdce!important;
    font-size:12px;
    line-height:1.55;
}

.front-v4-section {
    padding:82px 0;
}

.front-v4-soft {
    background:#fff;
    border-top:1px solid #e5ebf2;
    border-bottom:1px solid #e5ebf2;
}

.front-v4-section-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
    margin-bottom:28px;
}

.front-v4-section-head h2 {
    margin:8px 0 0;
    font-size:clamp(28px,4vw,42px);
    letter-spacing:-.03em;
}

.front-v4-section-head > p {
    max-width:560px;
    margin:0;
    line-height:1.65;
}

.front-v4-text-link {
    color:#0b63e5!important;
    font-size:13px;
    font-weight:800;
    white-space:nowrap;
}

.front-v4-vehicle-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.front-v4-vehicle-card {
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #dde5ee;
    border-radius:14px;
    background:#fff;
    box-shadow:0 7px 22px rgba(15,23,42,.05);
}

.front-v4-vehicle-image {
    position:relative;
    display:block;
    aspect-ratio:16/10;
    background:#e8edf3;
    overflow:hidden;
}

.front-v4-vehicle-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .25s ease;
}

.front-v4-vehicle-card:hover .front-v4-vehicle-image img {
    transform:scale(1.025);
}

.front-v4-vehicle-image .badge {
    position:absolute;
    left:12px;
    top:12px;
    margin:0;
    box-shadow:0 4px 14px rgba(15,23,42,.10);
}

.front-v4-vehicle-body {
    display:flex;
    flex:1;
    flex-direction:column;
    padding:16px;
}

.front-v4-vehicle-title {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.front-v4-vehicle-title h3 {
    margin:0;
    font-size:17px;
    line-height:1.25;
}

.front-v4-vehicle-title > strong {
    flex:0 0 auto;
    color:#0b63e5;
    font-size:15px;
}

.front-v4-vehicle-meta {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:11px 0;
}

.front-v4-vehicle-meta span {
    padding:4px 7px;
    border-radius:6px;
    background:#f2f6fb;
    color:#64748b;
    font-size:10px;
    font-weight:700;
}

body.front-v4-body .front-v4-vehicle-body p {
    flex:1;
    margin:0 0 14px;
    font-size:12px;
    line-height:1.55;
}

.front-v4-vehicle-body .btn {
    width:100%;
    min-height:38px;
    padding:0 12px;
    font-size:12px;
}

.front-v4-three-grid,
.front-v4-project-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.front-v4-info-card,
.front-v4-project-card {
    display:block;
    padding:22px;
    border:1px solid #dde5ee;
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 20px rgba(15,23,42,.045);
}

.front-v4-info-card > span,
.front-v4-project-card > span {
    display:inline-flex;
    margin-bottom:14px;
    padding:5px 8px;
    border-radius:6px;
    background:#eaf2ff;
    color:#0b63e5;
    font-size:10px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.front-v4-info-card h3,
.front-v4-project-card h3 {
    margin:0 0 8px;
    font-size:18px;
}

body.front-v4-body .front-v4-info-card p,
body.front-v4-body .front-v4-project-card p {
    margin:0;
    font-size:13px;
    line-height:1.6;
}

.front-v4-project-card strong,
.front-v4-project-card small {
    display:block;
    margin-top:16px;
    color:#0b63e5;
    font-size:12px;
    font-weight:800;
}

.front-v4-project-primary {
    background:linear-gradient(145deg,#071522,#0b2239);
    border-color:#163b60;
}

body.front-v4-body .front-v4-project-primary h3 {
    color:#fff!important;
}

body.front-v4-body .front-v4-project-primary p {
    color:#bdcad8!important;
}

.front-v4-project-primary > span {
    background:rgba(75,145,255,.16);
    color:#8bb6ff;
}

.front-v4-project-primary small {
    color:#8bb6ff;
}

.front-v4-contact-section {
    background:#eef4fb;
    border-top:1px solid #dde7f2;
}

.front-v4-contact-grid {
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    gap:46px;
    align-items:start;
}

.front-v4-contact-copy h2 {
    margin:9px 0 12px;
    font-size:clamp(30px,4vw,44px);
    letter-spacing:-.03em;
}

body.front-v4-body .front-v4-contact-copy > p {
    max-width:500px;
    margin:0;
    line-height:1.65;
}

.front-v4-contact-points {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:24px;
}

.front-v4-contact-points > a,
.front-v4-contact-points > div {
    padding:13px 14px;
    border:1px solid #d9e4ef;
    border-radius:10px;
    background:#fff;
}

.front-v4-contact-points span {
    display:block;
    margin-bottom:3px;
    color:#94a3b8;
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.front-v4-contact-points strong {
    color:#172033;
    font-size:13px;
}

.front-v4-contact-card {
    padding:22px;
    border:1px solid #d8e3ee;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 30px rgba(15,23,42,.07);
}

.front-v4-form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.front-v4-contact-form label > span {
    display:block;
    margin-bottom:5px;
    color:#475569;
    font-size:11px;
    font-weight:750;
}

.front-v4-contact-form input,
.front-v4-contact-form select,
.front-v4-contact-form textarea {
    width:100%;
    min-height:42px;
    padding:10px 11px;
    border:1px solid #cbd6e2;
    border-radius:8px;
    background:#fff;
    color:#111827;
    font:inherit;
    font-size:13px;
    outline:none;
}

.front-v4-contact-form textarea {
    min-height:130px;
    resize:vertical;
    line-height:1.5;
}

.front-v4-contact-form input:focus,
.front-v4-contact-form select:focus,
.front-v4-contact-form textarea:focus {
    border-color:#0b63e5;
    box-shadow:0 0 0 3px rgba(11,99,229,.10);
}

.front-v4-form-wide {
    grid-column:1 / -1;
}

.front-v4-honeypot {
    position:absolute!important;
    left:-9999px!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
}

.front-v4-consent {
    display:flex!important;
    align-items:flex-start;
    gap:9px;
    margin:13px 0 14px;
    color:#64748b;
    font-size:10px;
    line-height:1.5;
}

.front-v4-consent input {
    flex:0 0 auto;
    width:15px!important;
    height:15px!important;
    min-height:0!important;
    margin:1px 0 0;
}

.front-v4-consent span {
    margin:0!important;
    color:#64748b!important;
    font-size:10px!important;
    font-weight:500!important;
}

.front-v4-consent a {
    color:#0b63e5!important;
    text-decoration:underline;
}

.front-v4-submit {
    width:100%;
}

.front-v4-form-message {
    margin-bottom:13px;
    padding:11px 12px;
    border-radius:8px;
    font-size:12px;
    font-weight:700;
}

.front-v4-form-message.is-success {
    border:1px solid #bbf7d0;
    background:#f0fdf4;
    color:#166534;
}

.front-v4-form-message.is-error {
    border:1px solid #fecdd3;
    background:#fff1f2;
    color:#9f1239;
}

.front-v4-empty {
    padding:28px;
    border:1px dashed #cbd7e4;
    border-radius:12px;
    background:#fff;
    color:#64748b;
    text-align:center;
}

.front-v4-footer {
    padding:44px 0 24px!important;
    background:#07121f!important;
    color:#fff!important;
}

.front-v4-footer-grid {
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:46px;
    align-items:start;
}

.front-v4-footer-brand {
    display:grid;
    gap:7px;
}

.front-v4-footer-brand strong {
    font-size:22px;
}

.front-v4-footer-brand span {
    color:#94a3b8;
    font-size:12px;
}

.front-v4-footer-links {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.front-v4-footer-links > div {
    display:grid;
    gap:8px;
}

.front-v4-footer-links strong {
    margin-bottom:3px;
    color:#cbd5e1;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.front-v4-footer-links a {
    color:#94a3b8!important;
    font-size:12px;
}

.front-v4-footer-links a:hover {
    color:#fff!important;
}

.front-v4-footer-bottom {
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:32px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.08);
    color:#64748b;
    font-size:10px;
}

.front-v4-footer-bottom a {
    color:#8bb6ff!important;
}

@media (max-width:1050px) {
    .front-v4-hero-grid {
        grid-template-columns:1fr;
        gap:28px;
    }

    .front-v4-stat-card {
        max-width:620px;
    }

    .front-v4-vehicle-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .front-v4-contact-grid {
        grid-template-columns:1fr;
        gap:28px;
    }
}

@media (max-width:760px) {
    .front-v4-hero {
        min-height:auto;
    }

    .front-v4-hero-grid {
        padding-top:72px;
        padding-bottom:42px;
    }

    body.front-v4-body .front-v4-hero h1 {
        font-size:clamp(38px,12vw,58px);
    }

    body.front-v4-body .front-v4-hero-copy > p {
        font-size:14px;
    }

    .front-v4-stat-card {
        padding:16px;
    }

    .front-v4-section {
        padding:54px 0;
    }

    .front-v4-section-head {
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
        margin-bottom:20px;
    }

    .front-v4-vehicle-grid,
    .front-v4-three-grid,
    .front-v4-project-grid {
        grid-template-columns:1fr;
    }

    .front-v4-vehicle-card {
        display:grid;
        grid-template-columns:145px minmax(0,1fr);
    }

    .front-v4-vehicle-image {
        aspect-ratio:auto;
        height:100%;
        min-height:190px;
    }

    .front-v4-vehicle-title {
        flex-direction:column;
        gap:5px;
    }

    .front-v4-contact-points,
    .front-v4-form-grid {
        grid-template-columns:1fr;
    }

    .front-v4-form-wide {
        grid-column:auto;
    }

    .front-v4-footer-grid {
        grid-template-columns:1fr;
        gap:28px;
    }

    .front-v4-footer-bottom {
        flex-direction:column;
        gap:6px;
    }
}

@media (max-width:500px) {
    .front-v4-actions {
        display:grid;
        grid-template-columns:1fr;
    }

    .front-v4-actions .btn {
        width:100%;
    }

    .front-v4-stat-grid {
        gap:5px;
    }

    .front-v4-stat-grid > div {
        padding:10px 6px;
    }

    .front-v4-vehicle-card {
        display:flex;
    }

    .front-v4-vehicle-image {
        min-height:0;
        aspect-ratio:16/10;
    }

    .front-v4-contact-card,
    .front-v4-info-card,
    .front-v4-project-card {
        padding:16px;
    }

    .front-v4-footer-links {
        grid-template-columns:1fr 1fr;
    }
}


/* =========================================================
   JKGarage VEHICLE DETAIL V4
   ========================================================= */
.front-v4-detail-main {
    min-height:70vh;
    padding:42px 0 70px;
    background:#f4f7fb;
}

.front-v4-detail-back {
    display:inline-flex;
    margin-bottom:14px;
    color:#0b63e5!important;
    font-size:12px;
    font-weight:800;
}

.front-v4-detail-hero {
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);
    gap:28px;
    align-items:stretch;
}

.front-v4-detail-image {
    overflow:hidden;
    min-height:430px;
    border:1px solid #dce5ef;
    border-radius:16px;
    background:#e8eef5;
    box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.front-v4-detail-image img {
    width:100%;
    height:100%;
    min-height:430px;
    display:block;
    object-fit:contain;
    object-position:center;
    background:#eef3f8;
}

.front-v4-detail-copy {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:26px;
    border:1px solid #dce5ef;
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.front-v4-detail-copy h1 {
    margin:14px 0 12px;
    font-size:clamp(30px,4vw,46px);
    line-height:1.02;
    letter-spacing:-.035em;
}

.front-v4-detail-meta {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:18px;
}

.front-v4-detail-meta span {
    padding:5px 8px;
    border-radius:6px;
    background:#f1f5f9;
    color:#64748b;
    font-size:10px;
    font-weight:750;
}

body.front-v4-body .front-v4-detail-copy > p {
    margin:0;
    line-height:1.65;
}

.front-v4-detail-price {
    margin-top:auto;
    padding-top:24px;
    color:#0b63e5;
    font-size:30px;
    font-weight:900;
    letter-spacing:-.025em;
}

.front-v4-detail-actions {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:15px;
}

.front-v4-detail-actions .btn {
    width:100%;
}

.front-v4-detail-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:16px;
}

.front-v4-detail-card {
    padding:22px;
    border:1px solid #dce5ef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 7px 20px rgba(15,23,42,.045);
}

.front-v4-detail-card h2 {
    margin:10px 0 8px;
    font-size:20px;
}

.front-v4-detail-list {
    display:grid;
    gap:0;
    margin-top:14px;
}

.front-v4-detail-list > div {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:10px 0;
    border-bottom:1px solid #edf1f5;
}

.front-v4-detail-list > div:last-child {
    border-bottom:0;
}

.front-v4-detail-list span {
    color:#94a3b8;
    font-size:11px;
}

.front-v4-detail-list strong {
    color:#172033;
    font-size:12px;
    text-align:right;
}

.front-v4-detail-contact {
    display:grid;
    gap:7px;
    margin-top:16px;
}

.front-v4-detail-contact a {
    display:flex;
    align-items:center;
    min-height:38px;
    padding:0 11px;
    border:1px solid #dbe4ed;
    border-radius:8px;
    background:#f8fafc;
    color:#0b63e5!important;
    font-size:11px;
    font-weight:800;
}

.front-v4-detail-video {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:16px;
    padding:22px;
    border:1px solid #d3e1f2;
    border-radius:14px;
    background:#edf5ff;
}

.front-v4-detail-video h2 {
    margin:8px 0 5px;
    font-size:20px;
}

body.front-v4-body .front-v4-detail-video p {
    margin:0;
}

.front-v4-detail-empty {
    max-width:720px;
    margin:60px auto;
    padding:28px;
    border:1px solid #dce5ef;
    border-radius:14px;
    background:#fff;
    text-align:center;
}

.front-v4-detail-empty h1 {
    margin:10px 0;
}

.front-v4-detail-empty .btn {
    margin-top:10px;
}

.front-v4-detail-footer {
    margin-top:0!important;
}

@media(max-width:900px) {
    .front-v4-detail-hero,
    .front-v4-detail-grid {
        grid-template-columns:1fr;
    }

    .front-v4-detail-image,
    .front-v4-detail-image img {
        min-height:0;
    }

    .front-v4-detail-image {
        aspect-ratio:16/10;
    }

    .front-v4-detail-copy {
        min-height:0;
    }

    .front-v4-detail-price {
        margin-top:20px;
    }
}

@media(max-width:600px) {
    .front-v4-detail-main {
        padding:22px 0 48px;
    }

    .front-v4-detail-copy,
    .front-v4-detail-card {
        padding:16px;
    }

    .front-v4-detail-copy h1 {
        font-size:32px;
    }

    .front-v4-detail-price {
        font-size:25px;
    }

    .front-v4-detail-actions {
        grid-template-columns:1fr;
    }

    .front-v4-detail-video {
        align-items:stretch;
        flex-direction:column;
    }

    .front-v4-detail-video .btn {
        width:100%;
    }
}


/* JKGarage showroom scroll fix */
body.showroom-scroll-body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.showroom-scroll-body > main {
    min-height: auto !important;
    overflow: visible !important;
}


/* JKGarage legal pages scroll */
body.legal-scroll-body {
    height:auto !important;
    min-height:100vh;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}

/* JKGarage vehicle gallery */
.front-v4-detail-gallery {
    min-width:0;
}

.front-v4-detail-gallery .front-v4-detail-image {
    position:relative;
}

.front-v4-gallery-thumbs {
    display:flex;
    gap:9px;
    margin-top:10px;
    padding:2px 1px 7px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
}

.front-v4-gallery-thumb {
    flex:0 0 94px;
    height:66px;
    padding:0;
    overflow:hidden;
    border:2px solid transparent;
    border-radius:9px;
    background:#fff;
    cursor:pointer;
    opacity:.72;
    transition:border-color .15s ease, opacity .15s ease, transform .15s ease;
}

.front-v4-gallery-thumb:hover,
.front-v4-gallery-thumb.is-active {
    opacity:1;
    border-color:#0b63e5;
}

.front-v4-gallery-thumb:hover {
    transform:translateY(-1px);
}

.front-v4-gallery-thumb img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.front-v4-gallery-arrow {
    position:absolute;
    top:50%;
    z-index:4;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:rgba(15,23,42,.72);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    transform:translateY(-50%);
    backdrop-filter:blur(6px);
}

.front-v4-gallery-arrow:hover {
    background:rgba(11,99,229,.92);
}

.front-v4-gallery-arrow.is-prev { left:12px; }
.front-v4-gallery-arrow.is-next { right:12px; }

.front-v4-gallery-counter {
    position:absolute;
    right:12px;
    bottom:12px;
    z-index:4;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    font-size:11px;
    font-weight:800;
    backdrop-filter:blur(6px);
}

@media(max-width:600px) {
    .front-v4-gallery-thumb {
        flex-basis:78px;
        height:56px;
    }

    .front-v4-gallery-arrow {
        width:36px;
        height:36px;
        font-size:24px;
    }
}


/* Vehicle gallery hard fix: portrait + landscape without crop/stretch */
body.front-v4-body .front-v4-detail-gallery .front-v4-detail-image {
    height:560px !important;
    min-height:0 !important;
    aspect-ratio:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#eef3f8 !important;
}

body.front-v4-body .front-v4-detail-gallery .front-v4-detail-image > img[data-gallery-main] {
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:560px !important;
    object-fit:contain !important;
    object-position:center center !important;
    display:block !important;
}

@media(max-width:900px) {
    body.front-v4-body .front-v4-detail-gallery .front-v4-detail-image {
        height:min(68vh, 560px) !important;
        min-height:360px !important;
        aspect-ratio:auto !important;
    }

    body.front-v4-body .front-v4-detail-gallery .front-v4-detail-image > img[data-gallery-main] {
        max-height:min(68vh, 560px) !important;
    }
}

@media(max-width:520px) {
    body.front-v4-body .front-v4-detail-gallery .front-v4-detail-image {
        height:62vh !important;
        min-height:330px !important;
        max-height:520px !important;
    }

    body.front-v4-body .front-v4-detail-gallery .front-v4-detail-image > img[data-gallery-main] {
        max-height:520px !important;
    }
}


/* JKGarage parts market scroll fix */
body.parts-scroll-body {
    height:auto !important;
    min-height:100vh;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}

body.parts-scroll-body > main {
    min-height:auto !important;
    overflow:visible !important;
}


/* Fallback for cached teile.php markup */
body:has(> main.parts-page) {
    height:auto !important;
    min-height:100vh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}

body:has(> main.parts-page) > main.parts-page {
    min-height:auto !important;
    overflow:visible !important;
}
