:root {
    --primary-light: rgba(215, 12, 25, 0.1);
    --border: rgba(0, 0, 0, 0.06);
}

.car-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 3rem var(--site-px);
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.car-container ul,
.car-container ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.car-container ul {
    list-style: disc;
}

.car-container ol {
    list-style: decimal;
}

.car-container li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .car-container {
        padding-left: var(--site-px-desktop);
        padding-right: var(--site-px-desktop);
    }
}

/* Breadcrumbs */
.breadcrumb-nav {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
}

.breadcrumb-nav a {
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .separator {
    margin: 0 0.5rem;
    font-size: 0.65rem;
    opacity: 0.5;
}

.breadcrumb-nav .last {
    font-weight: 700;
    color: var(--c-text);
}

/* Header Section */
.car-header {
    margin-bottom: 0;
}

.car-header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.car-header-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.car-title {
    margin: 0;
}

.car-type-badge {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid currentColor;
}

.car-type-badge--ev {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.car-type-badge--hybrid {
    color: var(--primary);
    background: rgba(78, 143, 195, 0.1);
    border-color: rgba(78, 143, 195, 0.2);
}

.car-short-desc {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-text-muted);
    line-height: 1.4;
}

/* Sticky Nav */
.sticky-nav-container {
    position: sticky;
    top: var(--header-height, 72px);
    z-index: 90;
    width: 100%;
}

.variant-nav-wrapper {
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.sticky-nav-container.is-stuck .variant-nav-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .sticky-nav-container.is-stuck .variant-nav-wrapper {
        background: #1a1e26;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.variant-nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    align-items: center;
    min-height: 4.5rem;
}

.variant-tabs {
    display: flex;
    gap: 2.5rem;
}

.variant-tab {
    color: var(--c-text-muted);
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
}

.sticky-nav-container.is-stuck .variant-tab {
    color: rgba(255, 255, 255, 0.6);
}

.variant-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.variant-tab.active {
    color: var(--primary);
}

.sticky-nav-container.is-stuck .variant-tab.active {
    color: #ffffff;
}

.variant-tab.active::after {
    width: 100%;
}

.nav-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.sticky-nav-container.is-stuck .nav-price {
    color: #ffffff;
}

/* Hero Section */
.car-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .car-hero {
        grid-template-columns: 4.5fr 7.5fr;
    }
}

.spec-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variant-highlight {
    color: var(--primary);
    /* Inherits font-size: 2.25rem and weight: 700 from global h2 */
}

.variant-price-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.specs-list {
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--c-text-muted);
    letter-spacing: 0.08em;
}

.spec-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-text);
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-actions .btn {
    padding: 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 0.5rem;
}

/* Car Visuals */
.car-visuals {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.car-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.color-selector {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.color-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    padding: 0;
    position: relative;
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.color-dot.active {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 0 3px var(--primary);
}

.car-image-container img {
    transition: opacity 0.4s ease-in-out;
}

/* Pricing Section */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}



.section-desc {
    font-size: 1rem;
    color: var(--c-text-muted);
    margin: 0 auto;
}

.price-card {
    max-width: 1360px;
    margin: 0 auto;
}

.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 2rem;
}

.price-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--c-text);
}

.price-card-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breakdown-label {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    font-weight: 500;
}

.breakdown-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
}

.total-cost-block {
    margin-top: 2rem;
    padding: 2rem 0;
    background: transparent;
    border: none;
    border-top: 2px solid var(--primary);
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.total-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Promotions - Updated to WYSIWYG style */
.promo-content {
    max-width: 1360px;
    margin: 0 auto;
}

.promo-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.promo-content ul {
    list-style: none !important;
    padding: 0 !important;
}

.promo-content ul li {
    position: relative;
    padding-left: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.promo-content ul li::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 280px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Prose */
.prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--c-text);
    max-width: 1360px;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.prose h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    margin-bottom: 1.25rem;
}

.prose iframe,
.prose video,
.prose embed,
.prose object {
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .car-container {
        padding: 1.5rem 1rem;
        gap: 3.5rem;
    }

    .car-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .car-title {
        font-size: 2.25rem;
    }

    .variant-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        min-height: auto;
        gap: 1rem;
    }

    .variant-tabs {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        padding-bottom: 0;
        border-bottom: none;
    }

    .variant-tab {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 99px;
        color: var(--c-text);
        font-weight: 800;
        letter-spacing: 0.05em;
    }

    .variant-tab::after {
        display: none;
    }

    .variant-tab.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .sticky-nav-container.is-stuck .variant-tab {
        color: var(--c-text);
    }

    .sticky-nav-container.is-stuck .variant-tab.active {
        color: white;
    }

    .nav-price {
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--primary);
        white-space: nowrap;
    }

    .sticky-nav-container.is-stuck .nav-price {
        color: var(--primary);
    }

    .spec-sidebar {
        gap: 0;
    }

    .variant-highlight {
        margin-bottom: 0.25rem;
    }

    .variant-price-tag {
        font-size: 0.7rem;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .total-cost-block {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 0;
    }

    .total-value {
        font-size: 2rem;
    }

    .promo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .promo-item-value {
        margin-left: 2.75rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .car-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .spec-sidebar {
        order: 2;
    }

    .car-visuals {
        order: 1;
    }
}

[x-cloak] {
    display: none !important;
}

/* Other Cars Section */
.other-cars-section {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.other-cars-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.other-cars-grid .mega-menu-item {
    padding: 0;
}

.mega-menu-car-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

.other-cars-grid .mega-menu-image-wrapper {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .other-cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .other-cars-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* Pricing & Promo Split Layout */
@media (min-width: 1024px) {
    .pricing-promo-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
        align-items: start;
    }

    .pricing-promo-grid .section-header {
        text-align: left;
        align-items: flex-start;
    }

    .pricing-promo-grid .section-desc {
        margin: 0;
    }
}

@media (max-width: 1023px) {
    .pricing-promo-grid {
        display: flex;
        flex-direction: column;
        gap: 5rem;
    }
}
