/* Vehicle Details Page - matches React preview specs */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&display=swap");

.nc-details-page,
.nc-details-page * {
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
    
}

.nc-details-page {
    background: #FFFFFF;
    color: #24272C;
    padding: 24px 0;
}

.nc-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.nc-breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.nc-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.nc-breadcrumbs span {
    color: #24272C;
}

/* ================= GALLERY (full width) ================= */
.nc-gallery-section {
    margin-bottom: 32px;
}

.nc-main-slider {
    position: relative;
    width: 100%;
}

.nc-hero-img {
    width: 100%;
    height: 548px;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    transition: opacity .2s;
}

.nc-hero-img:not(.active) {
    opacity: 0;
}

.nc-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nc-slider-nav.prev {
    left: 16px;
}

.nc-slider-nav.next {
    right: 16px;
}

/* Media tabs */
.nc-gallery-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.nc-action-pill {
    width: 117px;
    height: 32px;
    border-radius: 4px;
    padding: 6px 8px;
    border: 1px solid #CFCFCF;
    background: #F2F3F7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "Outfit";
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #24272C;
    cursor: pointer;
}

.nc-action-pill .nc-icon {
    width: 14px;
    height: 14px;
}

.nc-action-pill i {
    font-size: 14px;
}

.nc-action-pill.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* ================= LAYOUT ================= */
.nc-details-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.nc-main-col {
    padding: 0 15px;
    flex: 1;
    min-width: 0;
}

.nc-sidebar-col {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ================= INFO HEADER ================= */
.nc-info-header {
    margin-bottom: 0;
}

.nc-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nc-variant-name {
    font-family: "Outfit";
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    color: #24272C;
    margin: 0;
}

.nc-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    border-radius: 36px;
    padding: 8px;
    background: #FFF3DF;
}

.nc-rating-val {
    font-family: "Outfit";
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #E18C00;
}

.nc-stars {
    display: none;
}

.nc-rating::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("icons/star.svg") center/contain no-repeat;
}

.nc-reviews-count {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #24272C;
}

.nc-actions-right {
    margin-left: auto;
}

.nc-compare-btn {
    width: 103px;
    height: 34px;
    border-radius: 4px;
    padding: 8px 12px;
    border: 1px solid #247A34;
    background: #FFFFFF;
    color: #247A34;
    font-family: "Outfit";
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.nc-compare-btn i {
    display: none;
}

.nc-compare-btn::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("icons/compare.png") center/contain no-repeat;
}

/* Price row */
.nc-price-row {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-price-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.nc-price-main-row {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.nc-price-main {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    color: #247A34;
}

.nc-price-label {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    color: #247A34;
}

.nc-price-ttc {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    color: rgba(85, 85, 85, 1);
}

.nc-price-sep {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    color: rgba(85, 85, 85, 1);
    margin: 0 4px;
}

.nc-price-dollar {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    color: #247A34;
}

/* ── Discount amount row (single-column TND-only fallback) ── */
.nc-price-discount-row {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.nc-price-discount-amount {
    font-family: "Outfit";
    font-weight: 600;
    font-size: 13px;
    line-height: 100%;
    color: #1a1a1a;
}

/* ── Original (pre-discount) price row (single-column TND-only fallback) ── */
.nc-price-original-row {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.nc-price-original {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    color: #a1a6ad;
    text-decoration: line-through;
}

/* Separator used in the smaller rows */
.nc-price-sep-sm {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    color: rgba(85, 85, 85, 0.6);
    margin: 0 4px;
}

/* ═══════════════════════════════════════════
   2-column price grid (TND left | EUR/USD right)
   Each pair of .nc-pgrid-left + .nc-pgrid-right
   forms one logical row; CSS Grid auto-places them.
   ═══════════════════════════════════════════ */
.nc-price-grid {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    row-gap: 3px;
    column-gap: 0;
}

.nc-pgrid-left {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding-right: 0;   /* separator lives in the right cell */
}

.nc-pgrid-right {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding-left: 0;
}

.nc-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nc-badge-pill {
    height: 27px;
    border-radius: 22px;
    padding: 4px 6px;
    background: #E1F5E5;
    color: #247A34;
    font-family: "Outfit";
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    justify-content: center;
}

.nc-badge-pill i {
    display: none;
}

.nc-badge-pill.essence::before {
    content: "";
    width: 14px;
    height: 14px;
    background: url("icons/gas.svg") center/contain no-repeat;
}

.nc-badge-pill.manuelle::before {
    content: "";
    width: 14px;
    height: 14px;
    background: url("icons/automation.svg") center/contain no-repeat;
}

/* ================= SECTIONS ================= */
.nc-section {
    margin-top: 32px;
}

.nc-section-title {
    font-family: "Outfit";
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    color: #24272C;
    margin: 0 0 8px 0;
}

.nc-section-content p {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 14px;
    line-height: 166%;
    letter-spacing: 0.5px;
    color: #666666;
    margin: 0;
    max-width: 872px;
}

/* Specs grid */
.nc-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
}

.nc-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    /* No internal separator lines */
    border-bottom: none;
    gap: 16px;
}

.nc-spec-item .label {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #666666;
}

.nc-spec-item .value {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #000;
    text-align: right;
}

/* Section dividers between Description / Caractéristiques / Moteur ... */
.nc-main-col .nc-section+.nc-section {
    border-top: 1px solid rgba(228, 228, 228, 1);
    padding-top: 15px;
    margin-top: 15px;
    max-width: 872px;
}

/* ================= SIDEBAR CARDS ================= */
.nc-card {
    width: 400px;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #EBEBEB;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nc-recommended-card {
    width: 399px;
}

.nc-card-title {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    color: #24272C;
    margin: 0;
}

/* Dealer */
.nc-dealer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-dealer-name {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #24272C;
    margin: 0;
}

.nc-dealer-address {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 14px;
    line-height: 166%;
    letter-spacing: 0.5px;
    color: #666666;
    margin: 8px 0 0 0;
}

.nc-dealer-socials {
    display: flex;
    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;
}

.nc-dealer-socials a i {
    font-size: 16px;
}

.nc-dealer-actions {
    display: flex;
    gap: 12px;
}

.nc-btn-outline,
.nc-btn-solid {
    width: 178px;
    height: 44px;
    border-radius: 4px;
    padding: 12px 24px;
    font-family: "Outfit";
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.nc-btn-outline {
    border: 1px solid #247A34;
    background: #FFFFFF;
    color: #247A34;
}

.nc-btn-solid {
    background: #247A34;
    color: #FFFFFF;
    border: none;
}

/* Recommended */
.nc-recommended-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nc-rm-item {
    display: flex;
    gap: 16px;
    width: 367px;
    min-height: 82px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nc-rm-img img {
    width: 150px;
    height: 82px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.nc-rm-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.nc-rm-name {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #24272C;
    margin: 0;
}

.nc-rm-meta {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #24272C;
}

.nc-rm-specs {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #666666;
}

.nc-rm-availability {
    font-family: "Outfit";
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #000000;
}

.nc-rm-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-family: "Outfit";
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    color: #247A34;
}

/* Responsive */
@media (max-width: 1100px) {
    .nc-details-layout {
        flex-direction: column;
    }

    .nc-sidebar-col {
        flex: 1 1 auto;
        width: 100%;
    }

    .nc-card,
    .nc-recommended-card {
        width: 100%;
    }

    .nc-rm-item {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nc-specs-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .nc-hero-img {
        height: 280px;
    }

    .nc-variant-name {
        font-size: 24px;
    }
}

/* ================= HERO MEDIA (video / 360) ================= */
.nc-hero-media {
    width: 100%;
    height: 548px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.nc-hero-media iframe,
.nc-hero-media video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 640px) {
    .nc-hero-media {
        height: 280px;
    }
}

/* 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;
}
/* ============================================
   GALLERY MODAL (popup Images) — added module
   ============================================ */
.nc-gallery-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.nc-gallery-modal.is-open { display: flex; animation: ncFadeIn .2s ease-out; }
.nc-gallery-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(15, 18, 22, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nc-gallery-modal__panel {
    position: relative;
    width: 764px; max-width: calc(100vw - 32px);
    height: auto; max-height: calc(100vh - 32px);
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 0;
    display: flex; flex-direction: column;
    gap: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25), 0 8px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    animation: ncScaleIn .25s cubic-bezier(.2,.8,.2,1);
}
.nc-gallery-modal__header {
    position: relative;
    padding: 0 24px 16px;
    border-bottom: 1px solid #EEF0F2;
}
.nc-gallery-modal__title {
    margin: 0 40px 16px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 18px; font-weight: 500; line-height: 100%;
    color: #24272C;
}
.nc-gallery-modal__close {
    position: absolute; top: -4px; right: 16px;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 8px;
    color: #24272C; cursor: pointer;
    transition: background-color .15s ease;
}
.nc-gallery-modal__close:hover { background: #F3F4F6; }
.nc-gallery-modal__tabs { display: flex; gap: 24px; }
.nc-gallery-tab {
    position: relative;
    background: transparent; border: 0; padding: 6px 0 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 500;
    color: #24272C; opacity: .7;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease, font-weight .2s ease;
}
.nc-gallery-tab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: #247A34;
    transform: scaleX(0); transform-origin: center;
    transition: transform .25s ease;
}
.nc-gallery-tab:hover { opacity: 1; }
.nc-gallery-tab.is-active {
    color: #247A34; opacity: 1; font-weight: 600;
}
.nc-gallery-tab.is-active::after { transform: scaleX(1); }
.nc-gallery-modal__body {
    flex: 1; min-height: 0;
    padding: 0 24px 4px;
    overflow-y: auto;
}
.nc-gallery-modal__body::-webkit-scrollbar { width: 6px; }
.nc-gallery-modal__body::-webkit-scrollbar-thumb { background: #D9DCE0; border-radius: 4px; }
.nc-gallery-grid { display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nc-gallery-grid.is-active { display: grid; }
.nc-gallery-cell {
    position: relative;
    padding: 0; border: 1px solid #EEF0F2; background: #F7F8FA;
    border-radius: 10px; overflow: hidden; cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nc-gallery-cell:hover {
    transform: translateY(-2px);
    border-color: #247A34;
    box-shadow: 0 8px 20px rgba(36, 122, 52, 0.15);
}
.nc-gallery-cell.is-active {
    border-color: #247A34;
    box-shadow: 0 0 0 2px #247A34, 0 8px 20px rgba(36, 122, 52, 0.25);
}
.nc-gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-gallery-cell__badge {
    position: absolute;
    top: 6px; left: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #247A34;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    pointer-events: none;
}
.nc-gallery-empty {
    grid-column: 1 / -1;
    text-align: center; color: #6B7280; font-size: 14px; padding: 32px 0;
}
body.nc-gallery-open { overflow: hidden; }
@keyframes ncFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ncScaleIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 820px) {
    .nc-gallery-modal__panel { max-height: calc(100vh - 32px); width: calc(100vw - 32px); }
    .nc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Override: disable all hover effects on buttons
   ============================================ */
.nc-details button:hover,
.nc-details .btn:hover,
.nc-details a.btn:hover,
.nc-details .nc-btn:hover,
.nc-details .compare-btn:hover,
.nc-details a:hover,
button:hover,
.btn:hover,
a.btn:hover,
.compare-btn:hover {
    background: inherit !important;
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
}

/* ============================================
   Fix: "Modèles recommandés pour vous" thumbnails
   uniform size + alignment regardless of source image
   ============================================ */
.nc-recommended-list .nc-rm-item {
    align-items: center;
}

.nc-recommended-list .nc-rm-img,
.nc-recommended-list .nc-rm-img img {
    width: 110px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
    border-radius: 4px;
    display: block;
}

.nc-recommended-list .nc-rm-info {
    flex: 1 1 auto;
    min-width: 0;
}

/* ============================================
   Fix: disable hover on WhatsApp button + slider arrows
   ============================================ */
.nc-whatsapp-btn,
.nc-whatsapp-btn:hover,
.nc-whatsapp-btn:focus,
.nc-whatsapp-btn:active {
    background: #247A34 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.nc-slider-nav,
.nc-slider-nav:hover,
.nc-slider-nav:focus,
.nc-slider-nav:active,
.nc-slider-nav.prev:hover,
.nc-slider-nav.next:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
}

/* ============================================
   Hover: add green border on social, Call, WhatsApp buttons
   ============================================ */
.nc-dealer-socials a {
    transition: border-color .15s ease !important;
}
.nc-dealer-socials a:hover {
    border: 1px solid #247A34 !important;
}

.nc-btn-outline {
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.nc-btn-outline:hover {
    border: 1px solid #247A34 !important;
    box-shadow: 0 0 0 1px #247A34 inset !important;
}

.nc-whatsapp-btn:hover {
    border: 1px solid #1f6a2c !important;
    box-shadow: 0 0 0 1px #1f6a2c inset !important;
}
