/* =========================================================
   Compare Page — Figma Redesign
   Font: Outfit (loaded via theme/head)
   ========================================================= */

/* ---------- Reset & Base ---------- */
.nc-compare-page *,
.nc-compare-page *::before,
.nc-compare-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =====================================================
   MOBILE STICKY CARD POLISH (<=768px)
   Final override for the scrollable compact vehicle cards.
   ===================================================== */
@media (max-width: 768px) {
    .nc-sticky-header.is-sticky {
        background: #FFFFFF !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        background: #FFFFFF !important;
        padding: 7px 0 6px !important;
        gap: 6px !important;
        box-shadow: 0 2px 8px rgba(24, 31, 27, 0.05) !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        width: min(100%, 244px) !important;
        max-width: 244px !important;
        min-width: 0 !important;
        align-items: stretch !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) 58px !important;
        align-items: center !important;
        gap: 7px !important;
        width: 100% !important;
        min-height: 58px !important;
        height: auto !important;
        padding: 4px 0 !important;
        background: #FFFFFF !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img {
        grid-column: 1 !important;
        width: 48px !important;
        height: 42px !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #F0F0F2 !important;
        border-radius: 7px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 7px !important;
        transform: none !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-body {
        grid-column: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 2px !important;
        text-align: left !important;
        align-self: center !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-title-row {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-name {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1.12 !important;
        color: #222222 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-promo-badge {
        background: #FFEBEB !important;
        color: #F04444 !important;
        width: auto !important;
        height: 14px !important;
        padding: 0 5px !important;
        border-radius: 4px !important;
        font-size: 8px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-meta {
        width: 100% !important;
        margin: 1px 0 0 !important;
        font-size: 9px !important;
        font-weight: 500 !important;
        line-height: 1.05 !important;
        color: #555555 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-wrap {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin: 1px 0 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price,
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-promo {
        margin: 1px 0 0 !important;
        color: #247A34 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-old {
        margin: 1px 0 0 !important;
        text-decoration: line-through !important;
        color: #8F8F8F !important;
        font-size: 8px !important;
        font-weight: 500 !important;
        line-height: 1.05 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-footer {
        grid-column: 3 !important;
        width: 58px !important;
        max-width: 58px !important;
        min-width: 58px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        align-self: center !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-change-car-btn {
        width: auto !important;
        min-width: 51px !important;
        min-height: 0 !important;
        height: 17px !important;
        padding: 0 7px !important;
        background: #247A34 !important;
        color: #FFFFFF !important;
        border: none !important;
        font-size: 8px !important;
        font-weight: 600 !important;
        line-height: 17px !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 3px rgba(36, 122, 52, 0.18) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        transform: none !important;
    }

    .nc-sticky-header.is-sticky .nc-remove-car-btn {
        display: none !important;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider {
        width: 100% !important;
        height: 22px !important;
        margin: -1px 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }
}

@media (max-width: 380px) {
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        width: min(100%, 236px) !important;
        max-width: 236px !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        grid-template-columns: 52px minmax(0, 1fr) 56px !important;
        gap: 6px !important;
    }
}

/* Non-scroll mobile: narrower centered cards */
@media (max-width: 768px) {
    .nc-sticky-header:not(.is-sticky) .nc-compare-col-wrapper {
        align-items: center !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-card {
        width: min(100%, 250px) !important;
        max-width: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-placeholder,
    .nc-sticky-header:not(.is-sticky) .nc-compare-selector {
        width: min(100%, 250px) !important;
        max-width: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 380px) {
    .nc-sticky-header:not(.is-sticky) .nc-compare-card,
    .nc-sticky-header:not(.is-sticky) .nc-compare-placeholder,
    .nc-sticky-header:not(.is-sticky) .nc-compare-selector {
        width: min(100%, 238px) !important;
        max-width: 238px !important;
    }
}

/* Non-scroll mobile cleanup */
@media (max-width: 768px) {
    .nc-sticky-header:not(.is-sticky) .nc-card-img {
        background: transparent !important;
        box-shadow: none !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-card-img img {
        background: transparent !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-change-car-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Non-scroll mobile cleanup */
@media (max-width: 768px) {
    .nc-sticky-header:not(.is-sticky) .nc-card-img {
        background: transparent !important;
        box-shadow: none !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-card-img img {
        background: transparent !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-change-car-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.nc-compare-page {
    padding: 48px 44px 80px;
    font-family: "Outfit", sans-serif;
    color: #24272C;
    overflow-x: hidden;
}

/* ---------- Container ---------- */
.nc-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Page Title ---------- */
.nc-compare-title {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: rgba(50, 50, 50, 1);
    line-height: 100%;
    letter-spacing: 0px;
    margin-bottom: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
}

.nc-title-car {
    width: 366px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.nc-title-vs {
    width: 44px;
    flex-shrink: 0;
    color: inherit;
}

/* =========================================================
   VEHICLE CARDS SECTION
   ========================================================= */

.nc-compare-header-grid {
    width: 100%;
    max-width: 820px;
    display: grid;
    grid-template-columns: 366px 44px 366px;
    gap: 12px;
    margin: 0 auto 48px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nc-sticky-header:not(.is-sticky) .nc-compare-header-grid::before {
    content: none;
}

.nc-sticky-header:not(.is-sticky) .nc-vs-divider {
    display: flex;
}

.nc-compare-col-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    align-items: center;
}

/* --- Vehicle Card --- */
.nc-compare-card {
    width: 100%;
    max-width: 366px;
    height: 430px;
    background: #E1F5E5;
    border-radius: 8px;
    padding: 10px;
    gap: 14px;
    box-shadow: 0px 4px 12px 0px rgba(36, 122, 52, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: box-shadow 0.25s ease;
}

.nc-compare-card:hover {
    box-shadow: 0px 8px 24px 0px rgba(36, 122, 52, 0.35);
}

/* --- Remove Button --- */
.nc-remove-car-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    opacity: 1;
    z-index: 20;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nc-remove-car-btn .nc-remove-icon {
    width: 14px;
    height: 14px;
    display: block;
    color: inherit;
    stroke: currentColor;
    pointer-events: none;
}

/* Fallback if FontAwesome fails to load: force a visible X via pseudo-element
   only when no inline SVG is rendered inside the button. */
.nc-remove-car-btn:not(:has(svg))::before {
    content: "\00d7";
    font-family: "Outfit", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

.nc-remove-car-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* --- Card Image --- */
.nc-card-img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.nc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nc-compare-card:hover .nc-card-img img {
    transform: scale(1.04);
}

/* --- Card Info Block --- */
.nc-card-body {
    width: 100%;
    max-width: 350px;
    background: #E1F5E5;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    justify-content: flex-start;
    gap: 7px;
    text-align: center;
    flex: 0 0 auto;
}

.nc-card-name {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #24272C;
}

.nc-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.nc-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 23px;
    background: #FFEBEB;
    border-radius: 4px;
    padding: 4px 8px;
    gap: 4px;
    opacity: 1;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
    color: #FF0000;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nc-card-meta {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    color: #555555;
}

.nc-card-price {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #247A34;
}

.nc-card-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.nc-card-price-old {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    color: #8a8a8a;
    text-decoration: line-through;
}

/* Flex wrapper that keeps strikethrough price and discount on the same line */
.nc-card-price-old-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Discount amount shown in red */
.nc-card-discount-amount {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    color: #e53935;
}

/* ═══════════════════════════════════════════════════════════
   3-row × 2-column price grid for compare cards
   Single column when TND only; adds right column for EUR/USD.
   ═══════════════════════════════════════════════════════════ */
.nc-cmp-price-grid {
    display: grid;
    grid-template-columns: 1fr;    /* single column by default */
    align-items: baseline;
    row-gap: 4px;
    column-gap: 12px;
    width: 100%;                   /* span full width of card body */
    box-sizing: border-box;
}

/* When a secondary currency exists: 2 columns, left and right aligned */
.nc-cmp-price-grid.has-secondary {
    grid-template-columns: 1fr auto;
}

/* Each grid cell */
.nc-cmp-cell {
    display: inline-flex;
    align-items: baseline;
}

/* TND values left-aligned */
.nc-cmp-price-grid.has-secondary .nc-cmp-cell:nth-child(odd) {
    justify-content: flex-start;
}

/* EUR/USD values right-aligned on the card */
.nc-cmp-price-grid.has-secondary .nc-cmp-cell:nth-child(even) {
    justify-content: flex-end;
    text-align: right;
}

/* On very narrow screens, stack currencies gracefully */
@media (max-width: 380px) {
    .nc-cmp-price-grid.has-secondary {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }
    .nc-cmp-price-grid.has-secondary .nc-cmp-cell:nth-child(even) {
        justify-content: flex-start;
        text-align: left;
    }
}

.nc-card-price-promo {
    color: #1f8f3a;
    font-size: 18px;
    font-weight: 700;
}

/* --- Card Footer (Change link) --- */
.nc-card-footer {
    width: 100%;
    display: flex;
    justify-content: stretch;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-top: auto;
    border-top: none;
}

.nc-change-car-btn {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, #2a8b3d 0%, #247A34 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    box-shadow: 0 10px 22px rgba(36, 122, 52, 0.24);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.nc-change-car-btn:hover {
    background: linear-gradient(180deg, #2f9a44 0%, #1f6f30 100%);
    box-shadow: 0 12px 26px rgba(36, 122, 52, 0.34);
    filter: saturate(1.05);
    transform: translateY(-2px);
}

/* --- Placeholder Card --- */
.nc-compare-placeholder {
    width: 100%;
    max-width: 366px;
    height: 354px;
    background: #F7F8FA;
    border-radius: 8px;
    border: 2px dashed #C5D8C8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nc-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.nc-plus-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E1F5E5;
    box-shadow: 0px 4px 12px rgba(36, 122, 52, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #247A34;
}

.nc-compare-placeholder h3 {
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #24272C;
    margin: 0;
}

.nc-add-car-cta {
    font-family: "Outfit", sans-serif;
    background: #247A34;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nc-add-car-cta:hover {
    background: #1a5c27;
    transform: translateY(-1px);
}

/* --- VS Divider --- */
.nc-vs-divider {
    width: 44px;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nc-vs-divider img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(36, 122, 52, 0.2);
}

/* --- Selector UI --- */
.nc-compare-selector {
    width: 366px;
    background: #E1F5E5;
    border-radius: 8px;
    box-shadow: 0px 4px 12px 0px rgba(36, 122, 52, 0.25);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nc-selector-title {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #24272C;
    text-align: center;
}

.nc-selector-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-selector-steps select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #C5D8C8;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #24272C;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: border-color 0.2s ease;
}

.nc-selector-steps select:focus {
    border-color: #247A34;
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 122, 52, 0.12);
}

.nc-selector-steps select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nc-cancel-sel {
    font-family: "Outfit", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 4px auto 0;
    background-color: #2F8F3B;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(36, 122, 52, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nc-cancel-sel:hover,
.nc-cancel-sel:focus-visible {
    background-color: #247A34;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 122, 52, 0.28);
    text-decoration: none;
    outline: none;
}

.nc-cancel-sel:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(36, 122, 52, 0.18);
}

/* =========================================================
   SPECS & FEATURES SECTION
   ========================================================= */

.nc-specs-comparison {
    margin-top: 16px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.nc-section-title {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    color: #000000;
    margin-bottom: 24px;
    text-align: left;
}

/* --- Spec Group Box --- */
.nc-spec-group {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding-bottom: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* --- Spec Group Header --- */
.nc-group-label {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: #F5F5F5;
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #24272C;
    border-bottom: none;
}

/* --- Specs Table Wrapper --- */
.nc-group-table-wrapper {
    overflow-x: hidden;
    scrollbar-width: none;
}

.nc-group-table-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.nc-group-table-wrapper::-webkit-scrollbar-thumb {
    background: transparent;
}

/* --- Compare Table --- */
/* --- Compare Table --- */
.nc-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Remove any inherited td borders */
.nc-compare-table td {
    border: none !important;
    outline: none;
}

/* Each row: one column per car */
.nc-compare-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
}

.nc-compare-table tbody tr:last-child {
    border-bottom: none;
}

/* Each cell: label stacked above value — NO column divider */
.nc-row-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px 20px;
    text-align: center;
    border: none !important;
}

/* Label — small, gray */
.nc-cell-label {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #888888;
    line-height: 1.3;
}

/* Value — bold, dark */
.nc-cell-value {
    display: block;
    width: 636px;
    max-width: 100%;
    height: 23px;
    opacity: 1;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    text-decoration: none;
    color: #24272C;
}

.nc-no-specs {
    font-family: "Outfit", sans-serif;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 15px;
}

/* =========================================================
   DEALER DETAILS SECTION
   ========================================================= */

.nc-dealer-comparison {
    margin-top: 40px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop spacing + narrower tables (different widths) */
@media (min-width: 1024px) {
    .nc-compare-page {
        padding-left: 64px;
        padding-right: 64px;
    }

    .nc-specs-comparison {
        max-width: 920px;
    }

    .nc-dealer-comparison {
        max-width: 860px;
    }
}

.nc-dealer-section-box {
    width: 100%;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #EAECF0;
}

.nc-dealer-section-header {
    height: 60px;
    padding: 16px 24px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #EAECF0;
}

.nc-dealer-section-title {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #24272C;
}

/* --- Dealer Grid: dynamic columns --- */
.nc-dealer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* --- Each column --- */
.nc-dealer-col {
    border-right: 1px solid #EAECF0;
    display: flex;
    flex-direction: column;
}

.nc-dealer-col:last-child {
    border-right: none;
}

/* --- Brand name — column header row --- */
.nc-dealer-brand {
    background: rgba(252, 252, 252, 1);
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #24272C;
    text-align: center;
    height: 52px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 1px solid #EAECF0;
    margin: 0;
}

/* --- Places list --- */
.nc-places-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* --- Each place item row --- */
.nc-place-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid #EAECF0;
}

.nc-place-item:last-child {
    border-bottom: none;
}

/* Showroom name */
.nc-place-item strong {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #24272C;
    display: block;
}

/* Address / phone */
.nc-place-item span {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #888888;
    display: block;
}

/* --- Dealer Social Icons (identical to details page) --- */
.nc-dealer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nc-dealer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #666666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #24272C;
    text-decoration: none;
    transition: border-color .15s ease !important;
}

.nc-dealer-socials a i {
    font-size: 16px;
}

.nc-dealer-socials a:hover {
    border: 1px solid #247A34 !important;
}

/* Facebook social icon - smaller than other social icons */
.nc-dealer-socials a.facebook img,
.nc-dealer-socials a[data-social="facebook"] img,
.nc-dealer-socials a img.facebook {
    width: 16px !important;
    height: 16px !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet: ≤ 992px */
@media (max-width: 992px) {
    .nc-compare-header-grid {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nc-compare-col-wrapper {
        width: 100%;
        max-width: 420px;
    }

    .nc-compare-card,
    .nc-compare-placeholder,
    .nc-compare-selector {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 320px;
    }

    .nc-card-img {
        width: 100%;
        height: 200px;
    }

    .nc-card-body {
        width: 100%;
    }

    .nc-vs-divider {
        width: 44px;
        height: 44px;
        margin: 0 auto;
    }

    .nc-group-table-wrapper {
        overflow-x: hidden;
    }
}

/* ---------- Select visibility override ---------- */
select.nc-sel-brand,
select.nc-sel-model,
select.nc-sel-variant {
    display: block !important;
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
    .nc-compare-page {
        padding: 24px 16px 60px;
    }

    .nc-container {
        padding: 0 16px;
    }

    .nc-compare-title {
        font-size: 18px;
        margin-bottom: 14px;
        width: 100%;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .nc-compare-header-grid {
        margin-bottom: 28px;
    }

    .nc-title-car {
        width: auto;
        flex: 1 1 calc(50% - 22px);
    }

    .nc-title-vs {
        width: 44px;
    }

    .nc-section-title {
        font-size: 22px;
    }

    .nc-compare-card,
    .nc-compare-placeholder,
    .nc-compare-selector {
        max-width: 100%;
    }

    .nc-card-img {
        height: 180px;
    }

    .nc-group-label {
        font-size: 17px;
        height: auto;
        padding: 14px 16px;
    }

    .nc-compare-table tbody tr {
        padding: 0 8px;
    }

    .nc-row-label {
        font-size: 13px;
    }

    .nc-row-value {
        font-size: 14px;
    }

    .nc-dealer-grid {
        grid-template-columns: 1fr;
    }

    .nc-dealer-col {
        border-right: none;
        border-bottom: 1px solid #EAECF0;
    }

    .nc-dealer-col:last-child {
        border-bottom: none;
    }

    .nc-dealer-section-title {
        font-size: 17px;
    }

    .nc-spec-group {
        margin-bottom: 16px;
    }
}

@media (max-width: 1200px) {
    .nc-compare-page {
        padding-left: 28px;
        padding-right: 28px;
    }

    .nc-specs-comparison,
    .nc-dealer-comparison {
        max-width: 920px;
    }
}

/* =========================================================
   STICKY COMPARISON HEADER
   ========================================================= */

/* --- Wrapper: natural state --- */
.nc-sticky-header {
    background: transparent;
    z-index: 999;
    /* Custom property – override per theme if navbar has different height */
    --nc-navbar-height: 0px;
}

/* --- Wrapper: sticky / fixed state --- */
.nc-sticky-header.is-sticky {
    position: fixed;
    top: var(--nc-navbar-height, 0px);
    left: 0;
    width: 100%;
    padding: 10px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    border-bottom: 1px solid #E8F5EA;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: nc-slide-down 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nc-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Grid: compact centred row --- */
.nc-sticky-header.is-sticky .nc-compare-header-grid {
    width: auto;
    max-width: 900px;
    margin: 0 auto;
    /* override the default margin-bottom: 48px */
    gap: 0;
    align-items: center;
}

/* --- Column wrapper: shrink --- */
.nc-sticky-header.is-sticky .nc-compare-col-wrapper {
    width: auto;
    flex: 1;
}

/* --- Card: compact horizontal layout --- */
.nc-sticky-header.is-sticky .nc-compare-card {
    width: 100%;
    height: auto;
    min-height: unset;
    flex-direction: row;
    align-items: center;
    padding: 6px 10px;
    gap: 10px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.nc-sticky-header.is-sticky .nc-compare-card:hover {
    box-shadow: none;
}

/* --- Card image: smaller thumbnail --- */
.nc-sticky-header.is-sticky .nc-card-img {
    width: 90px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: width 0.35s ease, height 0.35s ease;
}

.nc-sticky-header.is-sticky .nc-card-img img {
    transform: none !important;
}

/* --- Card body: left-aligned, compact --- */
.nc-sticky-header.is-sticky .nc-card-body {
    width: auto;
    flex: 1;
    align-items: flex-start;
    gap: 4px;
    background: transparent;
    text-align: left;
}

.nc-sticky-header.is-sticky .nc-card-name {
    font-size: 13px;
    line-height: 1.2;
}

.nc-sticky-header.is-sticky .nc-card-meta {
    font-size: 11px;
}

.nc-sticky-header.is-sticky .nc-card-price {
    font-size: 13px;
}

/* --- Footer (Change button): compact inline link in sticky mode --- */
.nc-sticky-header.is-sticky .nc-card-footer {
    display: flex;
    width: auto;
    padding-top: 0;
    justify-content: flex-start;
    border-top: none;
}

.nc-sticky-header.is-sticky .nc-change-car-btn {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(36, 122, 52, 1);
    border-radius: 4px;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 3px 10px;
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap;
}

.nc-sticky-header.is-sticky .nc-change-car-btn:hover {
    background: rgba(28, 98, 42, 1);
    box-shadow: none;
    transform: translateY(-1px);
}

.nc-sticky-header.is-sticky .nc-promo-badge {
    display: inline-flex;
    height: 20px;
    padding: 0 7px;
    font-size: 11px;
    border-radius: 4px;
}

.nc-sticky-header.is-sticky .nc-card-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.nc-sticky-header.is-sticky .nc-card-price-old {
    display: block;
    font-size: 10px;
    line-height: 1;
    color: #8a8a8a;
    text-decoration: line-through;
}

/* --- Remove button: hidden in sticky mode --- */
.nc-sticky-header.is-sticky .nc-remove-car-btn {
    display: none;
}

/* --- Column spacing in sticky mode --- */
.nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type {
    border-right: none;
    padding-right: 12px;
    margin-right: 0;
}

.nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
    padding-left: 12px;
}

/* --- VS divider: keep centred, smaller --- */
.nc-sticky-header.is-sticky .nc-vs-divider {
    width: 36px;
    flex-shrink: 0;
    margin: 0 8px;
}

.nc-sticky-header.is-sticky .nc-vs-divider img {
    width: 36px;
    height: 36px;
}

/* --- Placeholder: hide in sticky mode --- */
.nc-sticky-header.is-sticky .nc-compare-placeholder {
    display: none;
}

/* --- Transition on card internals for smooth animation --- */
.nc-compare-header-grid,
.nc-compare-card,
.nc-card-img,
.nc-card-body,
.nc-card-name,
.nc-card-meta,
.nc-card-price,
.nc-vs-divider img {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   STICKY — RESPONSIVE OVERRIDES
   ========================================================= */

@media (max-width: 768px) {
    .nc-sticky-header.is-sticky {
        top: calc(var(--nc-navbar-height, 0px) - 48px);
        padding: 0 12px 2px;
    }

    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        width: 100%;
        max-width: 360px;
        gap: 8px;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper {
        width: 100%;
        max-width: 320px;
        flex: none;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        display: grid;
        width: 100%;
        grid-template-columns: 60px minmax(0, 1fr) 82px;
        align-items: center;
        gap: 8px;
        padding: 2px 6px;
    }

    .nc-sticky-header.is-sticky .nc-card-img {
        width: 60px;
        height: 46px;
        align-self: center;
        grid-column: 1;
    }

    .nc-sticky-header.is-sticky .nc-card-body {
        min-width: 0;
        flex: 1 1 auto;
        grid-column: 2;
        align-self: center;
    }

    .nc-sticky-header.is-sticky .nc-card-name {
        font-size: 11px;
        max-width: 15ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nc-sticky-header.is-sticky .nc-card-price {
        font-size: 11px;
    }

    .nc-sticky-header.is-sticky .nc-card-footer {
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        align-self: center;
        grid-column: 3;
        width: 82px;
    }

    .nc-sticky-header.is-sticky .nc-change-car-btn {
        width: auto;
        padding: 4px 9px;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 28px;
        height: 28px;
    }
}

/* --- Loading state styles for AJAX update --- */
.nc-compare-page {
    position: relative;
    transition: opacity 0.25s ease;
}
.nc-compare-page.nc-loading {
    opacity: 0.45;
    pointer-events: none;
    cursor: wait;
}

/* =========================================================
   FINAL OVERRIDES - compare title + responsive header
   ========================================================= */
html,
body,
.nc-compare-page,
.nc-container,
.nc-specs-comparison,
.nc-spec-group,
.nc-group-table-wrapper,
.nc-compare-table {
    max-width: 100%;
    overflow-x: hidden;
}

.nc-group-table-wrapper {
    scrollbar-width: none;
}

.nc-group-table-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.nc-compare-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    width: 100%;
    max-width: 820px;
}

.nc-compare-header-grid {
    display: grid;
    grid-template-columns: 366px 44px 366px;
    width: 100%;
    max-width: 820px;
    gap: 12px;
    position: relative;
}

.nc-sticky-header:not(.is-sticky) .nc-compare-header-grid::before {
    content: none;
}

.nc-sticky-header:not(.is-sticky) .nc-vs-divider {
    display: flex;
}

.nc-compare-col-wrapper {
    width: 100%;
    min-width: 0;
    align-items: center;
}

.nc-compare-card {
    width: 100%;
    max-width: 366px;
    height: 430px;
}

.nc-compare-placeholder,
.nc-compare-selector {
    width: 100%;
    max-width: 366px;
    height: 354px;
}

.nc-card-img,
.nc-card-body {
    width: 100%;
    max-width: 350px;
}

.nc-vs-divider {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    display: flex;
    position: relative;
    z-index: 2;
}

.nc-compare-title {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.nc-title-car {
    width: 366px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.nc-title-vs {
    width: 44px;
    flex-shrink: 0;
    color: inherit;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .nc-compare-title {
        font-size: 18px;
        margin-bottom: 14px;
        width: 100%;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .nc-compare-header-grid {
        grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 28px;
    }

    .nc-title-car {
        width: auto;
        flex: 1 1 calc(50% - 22px);
    }

    .nc-group-table-wrapper {
        overflow-x: hidden;
    }

    .nc-cell-value {
        width: 100%;
          height: 69px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nc-sticky-header.is-sticky {
        top: calc(var(--nc-navbar-height, 0px) - 48px);
        padding: 0 12px 2px;
    }

    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        width: 100%;
        max-width: 360px;
        gap: 8px;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        width: 100%;
        max-width: 320px;
        flex: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        display: grid;
        width: 100%;
        grid-template-columns: 60px minmax(0, 1fr) 82px;
        align-items: center;
        gap: 8px;
        padding: 2px 6px;
    }

    .nc-sticky-header.is-sticky .nc-card-img {
        width: 60px;
        height: 46px;
        align-self: center;
        grid-column: 1;
    }

    .nc-sticky-header.is-sticky .nc-card-body {
        min-width: 0;
        grid-column: 2;
        align-self: center;
    }

    .nc-sticky-header.is-sticky .nc-card-name {
        max-width: 15ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nc-sticky-header.is-sticky .nc-card-footer {
        width: 82px;
        align-self: center;
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================================
   Intelligent Compare Cards Responsive
   ========================================================= */

/* 1) Mobile: horizontal scroll, centered cards + VS */
@media (max-width: 768px) {
    .nc-compare-header-grid,
    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        max-width: 100%;
        margin-bottom: 24px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 14px 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper {
        flex: 0 0 auto;
        width: 292px;
        max-width: 292px;
        min-width: 292px;
        scroll-snap-align: center;
        align-items: center;
    }

    .nc-compare-header-grid .nc-vs-divider,
    .nc-sticky-header.is-sticky .nc-vs-divider {
        flex: 0 0 auto;
        width: 34px;
        min-width: 34px;
        margin: 0;
        position: static;
        align-self: center;
        scroll-snap-align: center;
    }

    .nc-compare-header-grid .nc-vs-divider img,
    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 30px;
        height: 30px;
    }

    .nc-compare-card,
    .nc-sticky-header.is-sticky .nc-compare-card {
        width: 100%;
        max-width: 292px;
        height: 398px;
        padding: 8px;
        gap: 10px;
    }

    .nc-card-img,
    .nc-sticky-header.is-sticky .nc-card-img {
        width: 100%;
        max-width: 276px;
        height: 188px;
    }

    .nc-card-body,
    .nc-sticky-header.is-sticky .nc-card-body {
        width: 100%;
        max-width: 276px;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .nc-card-title-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nc-card-price-wrap {
        align-items: center;
    }

    .nc-card-footer,
    .nc-sticky-header.is-sticky .nc-card-footer {
        justify-content: center;
        width: 100%;
        margin-top: auto;
        padding-top: 2px;
        padding-bottom: 0;
    }

    .nc-change-car-btn,
    .nc-sticky-header.is-sticky .nc-change-car-btn {
        width: 100%;
        max-width: 276px;
        min-height: 44px;
    }
}

/* 2) Normal mode: compact side-by-side cards */
@media (min-width: 769px) {
    .nc-compare-header-grid {
        max-width: 760px;
        grid-template-columns: 338px 36px 338px;
        gap: 8px;
        margin-bottom: 32px;
    }

    .nc-compare-card {
        max-width: 338px;
        height: 402px;
        padding: 8px;
        gap: 10px;
    }

    .nc-card-img {
        max-width: 322px;
        height: 214px;
    }

    .nc-card-body {
        max-width: 322px;
        gap: 6px;
    }

    .nc-card-footer {
        padding-top: 2px;
        padding-bottom: 0;
    }

    .nc-change-car-btn {
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    /* Normal (non-sticky) mobile: keep both cards visible and clean on one row */
    .nc-sticky-header:not(.is-sticky) .nc-compare-header-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
        justify-items: stretch !important;
        overflow: visible !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-col-wrapper,
    .nc-sticky-header:not(.is-sticky) .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header:not(.is-sticky) .nc-compare-col-wrapper:last-of-type {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-vs-divider {
        width: 28px !important;
        min-width: 28px !important;
        margin: 0 auto !important;
        align-self: center !important;
        justify-self: center !important;
        position: relative !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-vs-divider img {
        width: 24px !important;
        height: 24px !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 360px !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-card-img,
    .nc-sticky-header:not(.is-sticky) .nc-card-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-card-img {
        height: 150px !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-card-name {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-change-car-btn {
        width: 100% !important;
        min-height: 44px !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-header-grid {
        align-items: start !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 8px !important;
        align-items: start !important;
        justify-items: center !important;
        max-width: 100% !important;
        padding: 0 8px 2px !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 320px !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type {
        grid-row: 1 !important;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        position: static !important;
        display: flex !important;
        justify-content: center !important;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 24px !important;
        height: 24px !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        grid-row: 3 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: 60px minmax(0, 1fr) 82px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 2px 6px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .nc-sticky-header.is-sticky .nc-card-img {
        width: 60px !important;
        height: 46px !important;
        grid-column: 1 !important;
    }

    .nc-sticky-header.is-sticky .nc-card-body {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        grid-column: 2 !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .nc-sticky-header.is-sticky .nc-card-title-row {
        justify-content: flex-start !important;
    }

    .nc-sticky-header.is-sticky .nc-card-name {
        max-width: 15ch !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .nc-sticky-header.is-sticky .nc-card-footer {
        width: 82px !important;
        max-width: 82px !important;
        grid-column: 3 !important;
        justify-content: center !important;
    }

    .nc-sticky-header.is-sticky .nc-change-car-btn {
        width: auto !important;
        min-height: 0 !important;
        padding: 4px 9px !important;
    }
}

/* =========================================================
   RESPONSIVE FIXES — pre-selection comparator state
   (≤992px tablet / ≤600px mobile)
   ========================================================= */

/* Prevent any horizontal overflow on the page */
.nc-compare-page,
.nc-container,
.nc-compare-header-grid,
.nc-compare-col-wrapper {
    max-width: 100%;
}

@media (max-width: 992px) {
    .nc-compare-page {
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: hidden;
    }

    .nc-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Stack the two cards with the VS badge in between */
    .nc-compare-header-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto;
        gap: 16px;
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    .nc-compare-col-wrapper {
        grid-column: 1 !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nc-compare-col-wrapper:nth-of-type(1) { grid-row: 1; }
    .nc-vs-divider                          { grid-row: 2; }
    .nc-compare-col-wrapper:nth-of-type(2) { grid-row: 3; }

    /* VS badge: centered, no overlap with forms */
    .nc-vs-divider {
        grid-column: 1 !important;
        position: static !important;
        justify-self: center;
        margin: 0 auto;
        width: 44px;
        height: 44px;
        z-index: 5;
    }

    .nc-vs-divider img {
        width: 44px;
        height: 44px;
    }

    /* Cards, placeholders and selectors use full available width */
    .nc-compare-card,
    .nc-compare-placeholder,
    .nc-compare-selector {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .nc-compare-selector {
        padding: 20px 16px;
        box-sizing: border-box;
    }

    /* Dropdowns take the full width of the selector */
    .nc-selector-steps,
    .nc-selector-steps select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .nc-compare-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nc-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nc-compare-header-grid {
        max-width: 100%;
        gap: 14px;
    }

    .nc-compare-selector {
        padding: 18px 14px;
    }

    .nc-selector-steps select {
        padding: 12px 14px;
        font-size: 15px;
    }

    .nc-cancel-sel {
        width: auto;
        min-width: 120px;
    }
}

/* =========================================================
   CANCEL BUTTON — force centered alignment everywhere
   ========================================================= */
.nc-compare-selector .nc-cancel-sel,
.nc-compare-selector > .nc-cancel-sel {
    display: block !important;
    width: max-content !important;
    min-width: 140px;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    text-align: center !important;
}

/* =========================================================
   MOBILE TABS — Voiture 1 / Voiture 2 (≤768px only)
   ========================================================= */
.nc-mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    /* Tab bar */
    .nc-mobile-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: 480px;
        margin: 0 auto 20px;
        padding: 6px;
        background: #F1F6F2;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .nc-mobile-tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 14px;
        font-family: "Outfit", sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        color: #4A6B50;
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .nc-mobile-tab:hover {
        color: #247A34;
    }

    .nc-mobile-tab.is-active {
        background: #2F8F3B;
        color: #FFFFFF;
        box-shadow: 0 2px 6px rgba(36, 122, 52, 0.25);
    }

    /* Single-card view: show only the active wrapper, hide VS divider */
    .nc-compare-header-grid {
        display: block !important;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    .nc-compare-header-grid .nc-vs-divider {
        display: none !important;
    }

    .nc-compare-header-grid .nc-compare-col-wrapper {
        display: none !important;
        width: 100%;
        max-width: 100%;
    }

    .nc-compare-header-grid[data-active-mobile="0"] .nc-compare-col-wrapper[data-index="0"],
    .nc-compare-header-grid[data-active-mobile="1"] .nc-compare-col-wrapper[data-index="1"] {
        display: flex !important;
    }

    /* Make sure cards/selectors fill the available width cleanly */
    .nc-compare-card,
    .nc-compare-placeholder,
    .nc-compare-selector {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Hide mobile tabs when the sticky header is collapsed (already-compact mode) */
.nc-sticky-header.is-sticky .nc-mobile-tabs {
    display: none !important;
}

/* =========================================================
   MOBILE UX POLISH — friendlier responsive comparator
   (final override block, ≤768px)
   ========================================================= */
@media (max-width: 768px) {

    /* --- Page rhythm --- */
    .nc-compare-page {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .nc-compare-title {
        font-size: 22px !important;
        line-height: 1.25 !important;
        text-align: center;
        margin: 12px auto 18px !important;
    }

    /* --- Mobile tabs: pill segmented control with status dot --- */
    .nc-mobile-tabs {
        position: sticky;
        top: 0;
        z-index: 30;
        background: #FFFFFF;
        padding: 8px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 10px rgba(15, 32, 18, 0.04);
    }
    .nc-mobile-tab {
        position: relative;
        font-size: 15px !important;
        min-height: 46px !important;
        letter-spacing: 0.2px;
    }
    .nc-mobile-tab::after {
        content: "";
        position: absolute;
        top: 8px;
        right: 10px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #C9D6CC;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .nc-mobile-tab.is-filled::after {
        background: #2F8F3B;
        transform: scale(1.1);
    }
    .nc-mobile-tab.is-active.is-filled::after {
        background: #FFFFFF;
    }

    /* --- Placeholder card: bigger, more inviting --- */
    .nc-compare-placeholder {
        padding: 28px 18px !important;
        border: 1.5px dashed #BFD5C4 !important;
        background: #F7FBF7 !important;
        border-radius: 16px !important;
        text-align: center;
    }
    .nc-placeholder-content .nc-plus-icon {
        width: 56px !important;
        height: 56px !important;
        margin: 0 auto 14px !important;
        background: #E7F3EA !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #2F8F3B !important;
        font-size: 22px !important;
    }
    .nc-placeholder-content h3 {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin: 0 0 14px !important;
        color: #1F3A24 !important;
    }
    .nc-add-car-cta {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        background: #2F8F3B !important;
        color: #FFFFFF !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(36, 122, 52, 0.22);
    }
    .nc-add-car-cta:active { transform: translateY(1px); }

    /* --- Selected card: nicer spacing & price hierarchy --- */
    .nc-compare-card {
        padding: 14px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 14px rgba(15, 32, 18, 0.06) !important;
    }
    .nc-card-name {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    .nc-card-price,
    .nc-card-price-promo {
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    .nc-change-car-btn {
        width: 100% !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
    }
    .nc-remove-car-btn {
        width: 32px !important;
        height: 32px !important;
        top: 8px !important;
        right: 8px !important;
    }

    /* --- Selector: friendlier form, larger native dropdowns --- */
    .nc-compare-selector {
        padding: 20px 16px 96px !important; /* room for sticky cancel */
        border-radius: 16px !important;
        background: #FFFFFF !important;
        position: relative;
    }
    .nc-selector-title {
        font-size: 17px !important;
        font-weight: 600 !important;
        text-align: center;
        margin: 0 0 16px !important;
    }
    .nc-selector-steps { gap: 12px !important; }
    .nc-selector-steps select {
        min-height: 50px !important;
        padding: 12px 40px 12px 14px !important;
        font-size: 15px !important;
        border: 1.5px solid #DCE5DD !important;
        border-radius: 10px !important;
        background-color: #FFFFFF !important;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232F8F3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 14px center !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }
    .nc-selector-steps select:disabled {
        background-color: #F4F6F4 !important;
        color: #9AA89D !important;
    }
    .nc-selector-steps select:focus {
        border-color: #2F8F3B !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(47, 143, 59, 0.15) !important;
    }

    /* Cancel: sticky bottom of selector, full-width, easy to thumb */
    .nc-compare-selector .nc-cancel-sel,
    .nc-compare-selector > .nc-cancel-sel {
        position: sticky !important;
        bottom: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 18px 0 0 !important;
        min-height: 48px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        box-shadow: 0 6px 16px rgba(36, 122, 52, 0.22) !important;
    }

    /* VS divider: smaller and softer between stacked cards */
    .nc-vs-divider img { width: 38px !important; height: 38px !important; }
}

/* Smallest phones */
@media (max-width: 380px) {
    .nc-mobile-tab { font-size: 14px !important; padding: 8px 10px !important; }
    .nc-compare-title { font-size: 20px !important; }
    .nc-card-name { font-size: 15px !important; }
}

/* =====================================================
   MOBILE STACKED LAYOUT (≤768px) — title + card + VS + title + card
   Overrides any prior mobile / tab behavior.
   ===================================================== */
.nc-mobile-col-title {
    display: none;
}

@media (max-width: 768px) {
    /* Hide mobile tab switcher — both cars now stack vertically */
    .nc-mobile-tabs,
    .nc-sticky-header .nc-mobile-tabs {
        display: none !important;
    }

    /* Vertical stack: col1 title+card → VS → col2 title+card */
    .nc-compare-header-grid,
    .nc-sticky-header .nc-compare-header-grid,
    .nc-sticky-header.is-sticky .nc-compare-header-grid,
    .nc-sticky-header:not(.is-sticky) .nc-compare-header-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }

    /* Both columns always visible — no hidden via data-active-mobile */
    .nc-compare-header-grid .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header:not(.is-sticky) .nc-compare-col-wrapper,
    .nc-compare-header-grid[data-active-mobile] .nc-compare-col-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        grid-row: auto !important;
        grid-column: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
    }

    /* Source ordering: title(0) — card(0) — VS — title(1) — card(1) */
    .nc-compare-header-grid .nc-compare-col-wrapper[data-index="0"] { order: 1; }
    .nc-compare-header-grid .nc-vs-divider                          { order: 2; }
    .nc-compare-header-grid .nc-compare-col-wrapper[data-index="1"] { order: 3; }

    /* Mobile per-column title (above each card) */
    .nc-mobile-col-title {
        display: block !important;
        width: 100% !important;
        margin: 0 0 12px 0 !important;
        padding: 0 8px !important;
        text-align: center !important;
        font-family: Outfit, system-ui, sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.3;
        color: #1a1a1a;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /* Hide the in-card duplicated title on mobile to avoid repetition */
    .nc-compare-card .nc-card-title-row .nc-card-name,
    .nc-compare-card .nc-card-name {
        display: none !important;
    }
    /* Keep promo badge visible & centered when title is hidden */
    .nc-compare-card .nc-card-title-row {
        justify-content: center !important;
        margin-bottom: 4px;
    }

    /* Cards & placeholder take full column width */
    .nc-compare-card,
    .nc-compare-placeholder,
    .nc-compare-selector {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* VS divider — centered between the two stacked columns */
    .nc-compare-header-grid .nc-vs-divider,
    .nc-sticky-header.is-sticky .nc-vs-divider,
    .nc-sticky-header:not(.is-sticky) .nc-vs-divider {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 8px 0 !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        grid-row: auto !important;
        grid-column: auto !important;
    }
    .nc-compare-header-grid .nc-vs-divider img {
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
    }

    /* Page container — no horizontal scroll */
    .nc-compare-page,
    .nc-sticky-header {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}

@media (max-width: 380px) {
    .nc-mobile-col-title {
        font-size: 16px;
    }
}

/* =====================================================
   MOBILE STICKY (≤768px) — compact horizontal rows on scroll
   Image | name + price | Changer button, stacked w/ VS
   ===================================================== */
@media (max-width: 768px) {
    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        padding: 8px 10px !important;
        gap: 8px !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    /* Hide the mobile per-column title when sticky (compact mode) */
    .nc-sticky-header.is-sticky .nc-mobile-col-title {
        display: none !important;
    }

    /* Compact card row */
    .nc-sticky-header.is-sticky .nc-compare-card {
        display: grid !important;
        grid-template-columns: 56px 1fr auto !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 6px 8px !important;
        min-height: 0 !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        position: relative !important;
    }

    /* Image: small square thumbnail */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img {
        width: 56px !important;
        height: 44px !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        border-radius: 6px !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* Body: name + price stacked, allow truncation */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-body {
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-title-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        margin: 0 !important;
        flex-wrap: wrap !important;
    }
    /* Show in-card name in sticky compact view */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-name {
        display: block !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        color: #1a1a1a !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-meta {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        color: #777 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price,
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-promo {
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        color: #2F8F3B !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-old {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    /* Footer / Changer button — right column */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-footer {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-change-car-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    /* Hide the X remove button in sticky compact mode (keep desktop behavior available via Changer) */
    .nc-sticky-header.is-sticky .nc-remove-car-btn {
        display: none !important;
    }

    /* Promo badge — keep small */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-promo-badge {
        font-size: 10px !important;
        height: 18px !important;
        line-height: 18px !important;
        padding: 0 6px !important;
    }

    /* Compact placeholder when no car selected */
    .nc-sticky-header.is-sticky .nc-compare-placeholder {
        min-height: 0 !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }
    .nc-sticky-header.is-sticky .nc-placeholder-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    .nc-sticky-header.is-sticky .nc-placeholder-content .nc-plus-icon {
        width: 28px !important;
        height: 28px !important;
        min-height: 0 !important;
        font-size: 14px !important;
    }
    .nc-sticky-header.is-sticky .nc-placeholder-content h3 {
        font-size: 13px !important;
        margin: 0 !important;
    }
    .nc-sticky-header.is-sticky .nc-add-car-cta {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    /* VS divider — smaller in sticky mode */
    .nc-sticky-header.is-sticky .nc-vs-divider {
        margin: 2px 0 !important;
    }
    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* =====================================================
   MOBILE COMPACT OPTIMIZATION (≤768px)
   - Hide page title on mobile (BMW VS Chery)
   - Shrink cards so both fit without scrolling
   - Remove white outer wrapper in sticky/scroll mode
   - Bring Specs section closer to comparison cards
   ===================================================== */
@media (max-width: 768px) {
    /* 1. Remove the centered page title on mobile */
    .nc-compare-page .nc-compare-title,
    .nc-container > .nc-compare-title {
        display: none !important;
    }

    /* Tighten outer page paddings */
    .nc-compare-page {
        padding-top: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .nc-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. Non-sticky stacked layout: compact cards, both visible */
    .nc-sticky-header:not(.is-sticky) .nc-compare-header-grid,
    .nc-compare-header-grid {
        gap: 8px !important;
        padding: 6px !important;
        margin: 0 !important;
    }

    /* Hide duplicated mobile per-column title — page already implicit */
    .nc-mobile-col-title {
        display: none !important;
    }

    /* Re-show in-card name (since col title hidden) */
    .nc-sticky-header:not(.is-sticky) .nc-compare-card .nc-card-name,
    .nc-sticky-header:not(.is-sticky) .nc-compare-card .nc-card-title-row .nc-card-name {
        display: block !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
        text-align: center;
        max-width: 100%;
        white-space: normal !important;
    }

    /* Compact card */
    .nc-sticky-header:not(.is-sticky) .nc-compare-card {
        min-height: 0 !important;
        height: auto !important;
        padding: 10px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(15,32,18,0.05) !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-img {
        height: 110px !important;
        padding: 4px !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-img img {
        max-height: 100% !important;
        width: auto !important;
        object-fit: contain !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-body {
        padding: 8px 4px 4px !important;
        gap: 4px !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-meta {
        font-size: 11px !important;
        margin: 0 !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-price,
    .nc-sticky-header:not(.is-sticky) .nc-card-price-promo {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 2px 0 !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-price-old {
        font-size: 11px !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-footer {
        padding: 6px 0 0 !important;
        margin: 0 !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-change-car-btn {
        min-height: 36px !important;
        height: 36px !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        width: auto !important;
        min-width: 110px;
        margin: 0 auto;
        display: inline-flex !important;
    }

    /* VS divider tighter spacing between stacked cards */
    .nc-sticky-header:not(.is-sticky) .nc-vs-divider {
        margin: 2px 0 !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-vs-divider img {
        width: 32px !important;
        height: 32px !important;
    }

    /* Placeholder also compact */
    .nc-compare-placeholder {
        padding: 16px 12px !important;
        min-height: 0 !important;
    }
    .nc-placeholder-content .nc-plus-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 auto 8px !important;
        font-size: 18px !important;
    }
    .nc-placeholder-content h3 {
        font-size: 14px !important;
        margin: 0 0 10px !important;
    }
    .nc-add-car-cta {
        min-height: 40px !important;
        font-size: 14px !important;
    }

    /* 3. SCROLL / STICKY mode — remove white outer wrapper */
    .nc-sticky-header.is-sticky {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .nc-sticky-header.is-sticky .nc-container,
    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        background: transparent !important;
        box-shadow: none !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        margin: 0 !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card {
        margin: 0 !important;
    }

    /* 4. Bring Specs section closer to comparison */
    .nc-specs-comparison {
        margin-top: 12px !important;
        padding-top: 8px !important;
    }
    .nc-compare-page > .nc-container > *:not(.nc-sticky-header):not(.nc-compare-title) {
        margin-top: 8px !important;
    }

    /* 5. Smooth scrolling */
    html, body { scroll-behavior: smooth; }
}

@media (max-width: 380px) {
    .nc-sticky-header:not(.is-sticky) .nc-card-img { height: 90px !important; }
    .nc-sticky-header:not(.is-sticky) .nc-card-name { font-size: 13px !important; }
    .nc-sticky-header:not(.is-sticky) .nc-card-price,
    .nc-sticky-header:not(.is-sticky) .nc-card-price-promo { font-size: 14px !important; }
}

/* =====================================================
   MOBILE FINAL TUNING (≤768px)
   - Non-scroll: center vehicle image + rounded image
   - Scroll/sticky: match reference (compact row, rounded thumb,
     green pill Changer button, promo badge inline)
   ===================================================== */
@media (max-width: 768px) {
    /* --- NON-SCROLL: image centered & rounded inside the card --- */
    .nc-sticky-header:not(.is-sticky) .nc-card-img {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #F5F5F7 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        width: calc(100% - 8px) !important;
    }
    .nc-sticky-header:not(.is-sticky) .nc-card-img img {
        max-width: 90% !important;
        max-height: 90% !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    /* --- SCROLL/STICKY: match reference screenshot --- */
    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        background: #FFFFFF !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card {
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
        gap: 12px !important;
        padding: 8px !important;
        background: #FFFFFF !important;
        border: 1px solid #EEE !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    /* Image: rounded grey thumbnail */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img {
        width: 72px !important;
        height: 56px !important;
        background: #F5F5F7 !important;
        border-radius: 10px !important;
        padding: 4px !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* Body: name on top, promo inline, price below, old price strikethrough */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-name {
        font-size: 13px !important;
        color: #222 !important;
        max-width: 100% !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-promo-badge {
        background: #FFEBEB !important;
        color: #FF0000 !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        line-height: 1 !important;
        height: auto !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price,
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-promo {
        color: #E11D1D !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-old {
        text-decoration: line-through !important;
        color: #999 !important;
        font-size: 11px !important;
    }

    /* Changer: green pill on the right */
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-footer {
        align-self: center !important;
    }
    .nc-sticky-header.is-sticky .nc-compare-card .nc-change-car-btn {
        background: #2F8F3B !important;
        color: #FFFFFF !important;
        border: none !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 999px !important;
        box-shadow: 0 2px 6px rgba(47,143,59,0.25) !important;
    }

    /* VS divider — small green circle centered between cards */
    .nc-sticky-header.is-sticky .nc-vs-divider {
        margin: 4px 0 !important;
    }
    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 26px !important;
        height: 26px !important;
    }
}

/* Non-scroll mobile cleanup */
@media (max-width: 768px) {
    .nc-sticky-header:not(.is-sticky) .nc-card-img {
        background: transparent !important;
        box-shadow: none !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-card-img img {
        background: transparent !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-change-car-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* =====================================================
   MOBILE STICKY CARD POLISH (<=768px)
   Final override for the scrollable compact vehicle cards.
   ===================================================== */
@media (max-width: 768px) {
    .nc-sticky-header.is-sticky {
        background: #FFFFFF !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-header-grid {
        background: #FFFFFF !important;
        padding: 7px 0 6px !important;
        gap: 6px !important;
        box-shadow: 0 2px 8px rgba(24, 31, 27, 0.05) !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        width: min(100%, 244px) !important;
        max-width: 244px !important;
        min-width: 0 !important;
        align-items: stretch !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) 58px !important;
        align-items: center !important;
        gap: 7px !important;
        width: 100% !important;
        min-height: 58px !important;
        height: auto !important;
        padding: 4px 0 !important;
        background: #FFFFFF !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img {
        grid-column: 1 !important;
        width: 48px !important;
        height: 42px !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #F0F0F2 !important;
        border-radius: 7px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 7px !important;
        transform: none !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-body {
        grid-column: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 2px !important;
        text-align: left !important;
        align-self: center !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-title-row {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-name {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1.12 !important;
        color: #222222 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-promo-badge {
        background: #FFEBEB !important;
        color: #F04444 !important;
        width: auto !important;
        height: 14px !important;
        padding: 0 5px !important;
        border-radius: 4px !important;
        font-size: 8px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-meta {
        width: 100% !important;
        margin: 1px 0 0 !important;
        font-size: 9px !important;
        font-weight: 500 !important;
        line-height: 1.05 !important;
        color: #555555 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-wrap {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin: 1px 0 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price,
    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-promo {
        margin: 1px 0 0 !important;
        color: #247A34 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-price-old {
        margin: 1px 0 0 !important;
        text-decoration: line-through !important;
        color: #8F8F8F !important;
        font-size: 8px !important;
        font-weight: 500 !important;
        line-height: 1.05 !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-card-footer {
        grid-column: 3 !important;
        width: 58px !important;
        max-width: 58px !important;
        min-width: 58px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        align-self: center !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card .nc-change-car-btn {
        width: auto !important;
        min-width: 51px !important;
        min-height: 0 !important;
        height: 17px !important;
        padding: 0 7px !important;
        background: #247A34 !important;
        color: #FFFFFF !important;
        border: none !important;
        font-size: 8px !important;
        font-weight: 600 !important;
        line-height: 17px !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 3px rgba(36, 122, 52, 0.18) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        transform: none !important;
    }

    .nc-sticky-header.is-sticky .nc-remove-car-btn {
        display: none !important;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider {
        width: 100% !important;
        height: 22px !important;
        margin: -1px 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nc-sticky-header.is-sticky .nc-vs-divider img {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }
}

@media (max-width: 380px) {
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:first-of-type,
    .nc-sticky-header.is-sticky .nc-compare-col-wrapper:last-of-type {
        width: min(100%, 236px) !important;
        max-width: 236px !important;
    }

    .nc-sticky-header.is-sticky .nc-compare-card {
        grid-template-columns: 52px minmax(0, 1fr) 56px !important;
        gap: 6px !important;
    }
}
/* Non-scroll mobile: narrower centered cards */
@media (max-width: 768px) {
    .nc-sticky-header:not(.is-sticky) .nc-compare-col-wrapper {
        align-items: center !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-card {
        width: min(100%, 250px) !important;
        max-width: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .nc-sticky-header:not(.is-sticky) .nc-compare-placeholder,
    .nc-sticky-header:not(.is-sticky) .nc-compare-selector {
        width: min(100%, 250px) !important;
        max-width: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 380px) {
    .nc-sticky-header:not(.is-sticky) .nc-compare-card,
    .nc-sticky-header:not(.is-sticky) .nc-compare-placeholder,
    .nc-sticky-header:not(.is-sticky) .nc-compare-selector {
        width: min(100%, 238px) !important;
        max-width: 238px !important;
    }
}
