/* ===========================================
   JapanCars Theme — v2
   =========================================== */

/* ---- CSS Variables ---- */
:root {
    --jpc-red:       #d43533;
    --jpc-red-dark:  #b82c2a;
    --jpc-dark:      #1e2029;
    --jpc-dark2:     #292933;
    --jpc-gray:      #888;
    --jpc-light:     #f7f8fa;
    --jpc-border:    #e5e7eb;
    --jpc-radius:    8px;
    --jpc-shadow:    0 2px 16px rgba(0,0,0,0.08);
}

/* ---- Base ---- */
.aiz-japancars {
    font-family: 'Inter', 'Public Sans', sans-serif !important;
    color: var(--jpc-dark2);
}
.aiz-japancars a { transition: color .15s; }

/* =====================================================
   PAGE CONTAINER PADDING (home / search / product detail)
   .layout-container (defined in custom-style.css) is base-theme
   markup shared with the reference design; its media query here
   is overridden to match the reference's breakpoints exactly —
   16px (via px-3) up to 1367px, 64px from 1368px, 128px from
   1500px — replacing custom-style.css's old single 64px@1920px
   step (this file loads last, so it wins the cascade).
   ===================================================== */
@media (min-width: 1368px) {
    .layout-container {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }
}
@media (min-width: 1500px) {
    .layout-container {
        padding-left: 128px !important;
        padding-right: 128px !important;
    }
}

/* =====================================================
   HEADER
   ===================================================== */

/* Sticky wrapper holds topbar + main header together */
.jpc-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ── Top utility bar ── */
.jpc-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.jpc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
}
.jpc-topbar-left {
    display: flex;
    align-items: center;
    gap: 0;
}
.jpc-topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
}
.jpc-topbar-item {
    color: #374151;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 0;
    white-space: nowrap;
    font-weight: 400;
}
.jpc-topbar-item i { font-size: 16px; color: #374151; }
.jpc-topbar-sep {
    color: #d1d5db;
    font-size: 14px;
    padding: 0 14px;
    line-height: 1;
    user-select: none;
}
.jpc-topbar-link {
    color: #374151;
    font-size: 12.5px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    transition: color 0.15s;
    white-space: nowrap;
    font-weight: 400;
}
.jpc-topbar-link:hover { color: var(--jpc-red); text-decoration: none !important; }
.jpc-topbar-link i { font-size: 16px; }
.jpc-topbar-link-icon { position: relative; padding-right: 20px !important; }
.jpc-topbar-badge {
    position: absolute;
    top: -6px;
    right: 2px;
    background: var(--jpc-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.jpc-topbar-btn {
    background: transparent;
    border: none;
    color: #374151;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    font-weight: 400;
}
.jpc-topbar-btn:hover { color: var(--jpc-red); }
.jpc-topbar-btn i { font-size: 16px; }
.jpc-topbar-profile { gap: 6px; }
.jpc-topbar-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.jpc-topbar-initial {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--jpc-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Main white header ── */
.jpc-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}
/* Navbar brand — remove Bootstrap default padding */
.jpc-header .navbar-brand {
    padding: 0;
    margin-right: 20px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jpc-header-logo-img {
    max-height: 32px;
    width: auto;
    display: block;
}
@media (min-width: 992px) {
    .jpc-header-logo-img {
        max-height: 48px;
    }
}

.jpc-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0;
}
.jpc-logo-japan {
    color: #111827;
    font-weight: 900;
}
.jpc-logo-cars {
    color: var(--jpc-red);
    font-weight: 900;
}

.jpc-logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.48rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #9ca3af;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    margin-top: 3px;
}
/* Footer logo reuse same colors */
.jpc-footer-logo-text .jpc-logo-japan { color: #aaa; }
.jpc-footer-logo-text .jpc-logo-cars  { color: var(--jpc-red); }
.jpc-nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827 !important;
    padding: 8px 20px !important;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.jpc-nav-link:hover { color: var(--jpc-red) !important; }

.jpc-badge-hot {
    background: var(--jpc-red);
    color: #fff;
    font-size: 0.5rem;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: super;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}
.jpc-btn-login {
    border: 1.5px solid #bbb;
    border-radius: 5px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    background: transparent;
    transition: all .2s;
    text-decoration: none !important;
    display: inline-block;
    white-space: nowrap;
}
.jpc-btn-login:hover { border-color: var(--jpc-red); color: var(--jpc-red); }

.jpc-btn-register {
    background: var(--jpc-red);
    color: #fff !important;
    border-radius: 5px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--jpc-red);
    transition: background .2s;
    text-decoration: none !important;
    display: inline-block;
    white-space: nowrap;
}
.jpc-btn-register:hover { background: var(--jpc-red-dark); border-color: var(--jpc-red-dark); color: #fff !important; }

/* Language / Currency compact buttons */
.jpc-nav-util-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 0.77rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: border-color .15s;
    white-space: nowrap;
}
.jpc-nav-util-btn:hover { border-color: var(--jpc-red); color: var(--jpc-red); }
.jpc-nav-chevron { font-size: 0.6rem; opacity: 0.6; }

.jpc-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Wishlist / Inquiry nav buttons */
.jpc-nav-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.77rem;
    font-weight: 500;
    color: #444;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
    margin-right: 10px;
}
.jpc-nav-icon-btn:hover { border-color: var(--jpc-red); color: var(--jpc-red) !important; }
.jpc-nav-icon-btn i { font-size: 1rem; }
.jpc-nav-label { font-size: 0.77rem; }
.jpc-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--jpc-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* nav mega-menu (dropdown Groups/Links config'd at /admin/website/nav-menu) */
.jpc-mega-menu-item { position: relative; }
.jpc-mega-menu {
    min-width: 720px;
    max-width: 92vw;
    padding: 20px 24px;
    border: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.jpc-mega-menu-inner { display: flex; gap: 32px; flex-wrap: wrap; }
.jpc-mega-menu-col { flex: 1; min-width: 165px; }
.jpc-mega-menu-col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #8a8f99;
    margin-bottom: 10px;
}
.jpc-mega-menu-links { list-style: none; margin: 0; padding: 0; }
.jpc-mega-menu-link { display: block; padding: 6px 0; color: #333; font-size: 13px; white-space: nowrap; }
.jpc-mega-menu-link:hover { color: var(--jpc-red); text-decoration: none; }

/* mobile nav collapse adjustments */
@media (max-width: 991px) {
    .jpc-header .navbar { padding: 10px 0; }
    .jpc-header #jpcNavbar {
        position: fixed;
        top: 70px;
        right: 0;
        left: auto;
        width: 260px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1050;
        background: #fff;
        padding: 10px 16px 14px;
        box-shadow: -4px 8px 24px rgba(0,0,0,.15);
        border-radius: 0 0 0 10px;
    }
    .jpc-nav-link { padding: 9px 4px !important; border-bottom: 1px solid #f5f5f5; }
    .jpc-nav-right { flex-wrap: wrap; padding-top: 8px; }
    .jpc-btn-login, .jpc-btn-register { margin-top: 4px; }

    /* #jpcNavbar above is a fixed 260px drawer with overflow-y:auto — a wide
       position:absolute dropdown-menu (Bootstrap's default) gets clipped by
       that overflow. Force it into normal flow so it stacks and scrolls
       with the drawer instead of being cut off. */
    .jpc-mega-menu-item .dropdown-menu.jpc-mega-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100%;
        min-width: 0 !important;
        transform: none !important;
        box-shadow: none;
        padding: 4px 0 8px 8px;
        margin: 0;
    }
    .jpc-mega-menu-inner { display: block; }
    .jpc-mega-menu-col { margin-bottom: 12px; }
}

/* =====================================================
   HERO
   ===================================================== */
.jpc-hero {
    min-height: 600px;
    background: linear-gradient(160deg, #0d1b2a 0%, #1a2e44 45%, #0f3460 100%);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    /* Search dropdowns may extend below the hero's final row. */
    overflow: visible;
    /* align-items: flex-start — content flows from top */
    display: flex;
    align-items: flex-start;
}
.jpc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.5)  55%,
        rgba(0,0,0,0.18) 100%);
    z-index: 1;
}
.jpc-hero-content {
    position: relative;
    z-index: 2;
    padding: 52px 0 40px;
    width: 100%;
}
.jpc-hero-headline {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0;
}
.jpc-hero-headline .text-red { color: #ff3b3b; }

.jpc-hero-sub {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    margin: 0.85rem 0 0;
    line-height: 1.7;
}

/* ---- Search Box ---- */
.jpc-search-box {
    background: #fff;
    border-radius: 10px;
    padding: 22px 22px 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.32);
    max-width: 80%;
}
@media (max-width: 767px) {
    .jpc-search-box { max-width: 100%; }
}
.jpc-search-box .jpc-field-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}
/* Uniform input/select height */
.jpc-search-box .jpc-select,
.jpc-search-box .jpc-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 32px 0 10px;
    border: 1.5px solid #dde2e8;
    border-radius: 5px;
    font-size: 0.82rem;
    color: #333;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3e%3cpath d='M0 0l5 6 5-6z' fill='%23999'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .15s;
    line-height: 40px;
}
.jpc-search-box .jpc-select:focus,
.jpc-search-box .jpc-input:focus {
    border-color: var(--jpc-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,53,51,0.12);
}

/* Year / Price / Mileage range pair */
.jpc-range-pair {
    display: flex;
    align-items: center;
    gap: 6px;
}
.jpc-range-pair .jpc-select { padding-right: 26px; min-width: 0; flex: 1; }
.jpc-range-sep {
    font-size: 0.75rem;
    color: #bbb;
    flex-shrink: 0;
    line-height: 40px;
}

/* Invisible label to align button with labeled inputs */
.jpc-label-invisible { visibility: hidden; }

/* Search button — same height as inputs (40px) */
.jpc-btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 100%;
    padding: 0 16px;
    background: var(--jpc-red);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.jpc-btn-search:hover { background: var(--jpc-red-dark); color: #fff; }
.jpc-btn-search i { margin-right: 5px; }

/* Popular searches INSIDE search box */
.jpc-popular-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.jpc-popular-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}
.jpc-pop-tag {
    display: inline-block;
    font-size: 0.72rem;
    color: #555;
    background: #f4f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 3px 10px;
    text-decoration: none !important;
    transition: all .15s;
    white-space: nowrap;
}
.jpc-pop-tag:hover {
    background: var(--jpc-red);
    color: #fff !important;
    border-color: var(--jpc-red);
}

.jpc-advanced-link {
    font-size: 0.72rem;
    color: var(--jpc-red);
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.jpc-advanced-link:hover { text-decoration: underline !important; color: var(--jpc-red-dark); }

/* OLD search-actions — keep for compat */
.jpc-search-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}
.jpc-search-actions .jpc-btn-search { flex: 1; }

.jpc-popular-searches {
    margin-top: 16px;
    font-size: 0.77rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
}
.jpc-popular-searches strong { color: rgba(255,255,255,0.9); }
.jpc-popular-searches a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    margin: 0 3px;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}
.jpc-popular-searches a:hover { color: #fff; border-bottom-color: #fff; }

/* =====================================================
   STATS BAR — dark navy blue (matches reference image)
   ===================================================== */
.jpc-stats-bar {
    background: #1a2e44 !important;
    background-color: #1a2e44 !important;
    border: none;
}
.jpc-stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    background: #1a2e44;
}
.jpc-stat-item {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
    background: transparent;
}
.jpc-stat-item:last-child { border-right: none; }

/* Shield/circle icon — white on slightly lighter navy */
.jpc-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}
.jpc-stat-text strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.jpc-stat-text small {
    font-size: 0.64rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.2;
    display: block;
}

@media (max-width: 1199px) { .jpc-stats-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 767px)  {
    .jpc-stats-grid { grid-template-columns: repeat(2,1fr); }
    .jpc-stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.jpc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 44px 0 18px;
}
.jpc-section-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--jpc-dark2);
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.jpc-section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--jpc-red);
    border-radius: 2px;
}
.jpc-view-all {
    font-size: 0.78rem;
    color: var(--jpc-red);
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.jpc-view-all:hover { color: var(--jpc-red-dark); }

/* =====================================================
   BROWSE BY CATEGORY — shared card styles
   ===================================================== */
.jpc-categories-section { background: var(--jpc-light); padding-bottom: 40px; }

/* Home page grid */
.jpc-home-cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 1199px) { .jpc-home-cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .jpc-home-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .jpc-home-cats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card */
.jpc-cat-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.jpc-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    color: inherit;
}
.jpc-cat-card.hidden { display: none; }

/* Image area */
.jpc-cat-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f4f8;
    position: relative;
}
.jpc-cat-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.jpc-cat-card:hover .jpc-cat-card-img img { transform: scale(1.05); }

/* Badge */
.jpc-cat-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    font-size: 10px; font-weight: 700; padding: 2px 7px;
    border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.jpc-cat-badge.hot { background: #e53935; color: #fff; }
.jpc-cat-badge.new { background: #27ae60; color: #fff; }

/* Info block */
.jpc-cat-card-info { padding: 10px 12px 12px; }
.jpc-cat-card-name {
    font-size: 13px; font-weight: 700; color: #1a2e44;
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jpc-cat-card-count {
    display: flex; align-items: center; gap: 4px;
    margin-top: 4px; font-size: 12px; color: #e53935; font-weight: 600;
}
.jpc-cat-card-count i { font-size: 13px; }

/* =====================================================
   HERO "CARS IN STOCK BY COUNTRY" STRIP
   Compact bar sitting in the hero's own leftover bottom
   space (below the search box), floating white-on-dark
   like .jpc-search-box, not a full homepage section.
   ===================================================== */
.jpc-hero-inv,
.jpc-hero-inv-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    margin-top: 14px;
    max-width: 80%;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.jpc-hero-inv-total {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none !important;
    color: inherit;
    white-space: nowrap;
}
.jpc-hero-inv-total i { font-size: 1.3rem; color: var(--jpc-red); }
.jpc-hero-inv-total strong { display: block; font-size: 1rem; font-weight: 800; color: var(--jpc-dark2); line-height: 1.2; }
.jpc-hero-inv-total span { display: block; font-size: 0.68rem; color: var(--jpc-gray); }

.jpc-hero-inv-sep { flex-shrink: 0; width: 1px; align-self: stretch; background: var(--jpc-border); }

.jpc-hero-inv-scroller { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }

.jpc-hero-inv-nav {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--jpc-border);
    background: #fff;
    color: #555;
    cursor: pointer;
    font-size: 0.75rem;
}
.jpc-hero-inv-nav:hover { background: var(--jpc-light); }

.jpc-hero-inv-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}
.jpc-hero-inv-track::-webkit-scrollbar { display: none; }

.jpc-hero-inv-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--jpc-light);
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s;
}
.jpc-hero-inv-chip:hover { background: #eceff3; }

.jpc-hero-inv-flag {
    display: inline-block;
    flex-shrink: 0;
    width: 1.2em;
    line-height: 0.9em;
    font-size: 0.9rem;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.jpc-hero-inv-flag--placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 16px; height: 12px; color: var(--jpc-gray); font-size: 0.65rem;
}

.jpc-hero-inv-chip-name { font-size: 0.74rem; font-weight: 600; color: var(--jpc-dark2); }
.jpc-hero-inv-chip-count { font-size: 0.74rem; font-weight: 700; color: var(--jpc-red); }

.jpc-inv-placeholders { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.jpc-hero-inv-loading .jpc-inv-placeholder {
    display: block;
    flex-shrink: 0;
    border-radius: 4px;
}
.jpc-inv-placeholder--icon { width: 22px; height: 22px; }
.jpc-inv-placeholder--count { width: 70px; height: 16px; margin: 2px 0 5px; }
.jpc-inv-placeholder--label { width: 86px; height: 10px; margin-bottom: 2px; }
.jpc-hero-inv-loading .jpc-inv-placeholder--chip { height: 28px; border-radius: 20px; }

@media (max-width: 767px) {
    .jpc-hero-inv, .jpc-hero-inv-loading { max-width: 100%; }
}
@media (max-width: 480px) {
    .jpc-hero-inv, .jpc-hero-inv-loading { padding: 8px 12px; gap: 10px; }
    .jpc-hero-inv-total span { display: none; }
    .jpc-hero-inv-loading .jpc-inv-placeholder--label { display: none; }
    .jpc-inv-placeholder--count { margin: 0; }
    .jpc-hero-inv-loading .jpc-inv-placeholder--chip { height: 24px; }
}

/* =====================================================
   FEATURED STOCK (car cards)
   ===================================================== */
.jpc-featured-section { background: #fff; padding-bottom: 52px; }

/* Featured scroll wrapper */
.jpc-fs-wrap {
    position: relative;
}
.jpc-fs-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.jpc-fs-scroll::-webkit-scrollbar { display: none; }

.jpc-fs-item {
    flex-shrink: 0;
    width: 210px;
}

/* Arrow buttons */
.jpc-fs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--jpc-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--jpc-dark2);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all .2s;
}
.jpc-fs-arrow:hover { border-color: var(--jpc-red); color: var(--jpc-red); }
.jpc-fs-arrow-left  { left: -18px; }
.jpc-fs-arrow-right { right: -18px; }

@media (max-width: 767px) {
    .jpc-fs-item { width: 175px; }
    .jpc-fs-arrow { display: none !important; }
}

.jpc-car-card {
    border: 1px solid var(--jpc-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.jpc-car-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.13); transform: translateY(-4px); }

.jpc-car-img-wrap {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}
.jpc-car-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.jpc-car-card:hover .jpc-car-img-wrap img { transform: scale(1.07); }

.jpc-car-wishlist {
    position: absolute;
    top: 9px; right: 9px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: #bbb;
    font-size: 0.9rem;
    z-index: 2;
    transition: color .15s, background .15s;
}
.jpc-car-wishlist:hover { color: var(--jpc-red); background: #fff; }

.jpc-badge {
    position: absolute;
    top: 9px; left: 9px;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.jpc-badge-hot-card { background: var(--jpc-red); color: #fff; }
.jpc-badge-new-card { background: #16a34a; color: #fff; }

/* Car image link — no underline */
.jpc-car-img-link { display: block; text-decoration: none; }

/* Car placeholder inside gradient bg */
.jpc-car-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}
.jpc-car-svg { width: 90px; height: auto; opacity: 0.5; }

.jpc-car-body { padding: 12px 12px 8px; flex-grow: 1; }

.jpc-car-name-link { text-decoration: none !important; display: block; }
.jpc-car-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--jpc-dark2);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.jpc-car-name-link:hover .jpc-car-name { color: var(--jpc-red); }

.jpc-car-grade {
    font-size: 0.69rem;
    color: #aaa;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pipe-separated specs: "42,000 km | 2500cc | AT" */
.jpc-car-specs-bar {
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price block — 2-column layout like reference image */
.jpc-price-block {
    padding: 10px 12px 0;
    border-top: 1px solid #f0f0f0;
}
.jpc-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 5px;
}
.jpc-price-label {
    font-size: 0.61rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    margin-right: 6px;
}
.jpc-price-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--jpc-red);
    line-height: 1;
}
.jpc-price-row--est { margin-bottom: 8px; }
.jpc-price-est-label {
    font-size: 0.67rem;
    color: #999;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 6px;
}
.jpc-price-est-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jpc-dark2);
    flex-shrink: 0;
}

/* Car card footer — wraps the non-full-width CTA button */
.jpc-car-footer {
    padding: 10px 12px 12px;
    display: flex;
    justify-content: center;
}
.jpc-btn-details {
    display: inline-block;
    background: var(--jpc-dark2);
    color: #fff !important;
    border: none;
    padding: 8px 28px;
    font-size: 0.77rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none !important;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.jpc-btn-details:hover { background: var(--jpc-red); color: #fff !important; }

/* =====================================================
   CALCULATE COST — single white card, 3 horizontal zones
   (form | breakdown | ship photo) — matches reference image
   ===================================================== */
.jpc-calc-section {
    background: #fff;
    padding: 56px 0;
}

/* One big white outer card */
.jpc-calc-card-outer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    display: flex;
    overflow: hidden;
    min-height: 320px;
}

/* ── ZONE 1: Form (left, ~52%) ── */
.jpc-calc-zone-form {
    flex: 0 0 52%;
    padding: 32px 36px 28px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.jpc-calc-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--jpc-dark2);
    margin-bottom: 6px;
}
.jpc-calc-sub {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 20px;
}

/* 2×2 grid for the 4 form fields */
.jpc-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 20px;
}
.jpc-calc-field { display: flex; flex-direction: column; }

/* Select Vehicle — icon on left of dropdown */
.jpc-calc-select-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #dde2e8;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.jpc-calc-select-wrap:focus-within {
    border-color: var(--jpc-red);
    box-shadow: 0 0 0 3px rgba(212,53,51,0.1);
}
.jpc-calc-car-thumb {
    width: 40px; height: 42px;
    background: #f4f5f7;
    display: flex; align-items: center; justify-content: center;
    color: #777; font-size: 1rem;
    flex-shrink: 0;
    border-right: 1px solid #e8e8e8;
}
/* Select inside the wrap — remove own border */
.jpc-fc-thumb {
    flex: 1;
    height: 42px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 28px 0 10px;
    font-size: 0.82rem;
    color: #333;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3e%3cpath d='M0 0l5 6 5-6z' fill='%23999'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Radio method row — RoRo/Container must always stay on one line (never
   wrap), so sizing is kept compact (smaller font/gap/padding) rather than
   letting the row grow taller. min-height (not a fixed height) is still a
   safety net for native radio-input rendering differences across
   browsers/OS/zoom, without allowing the row to shrink below its siblings'
   42px field height. */
.jpc-calc-radio-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 42px;
    border: 1.5px solid #dde2e8;
    border-radius: 5px;
    padding: 4px 10px;
}

/* Calculate button */
.jpc-btn-calc {
    width: 100%;
    height: 46px;
    background: var(--jpc-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: 0.3px;
    margin-top: auto;
}
.jpc-btn-calc:hover { background: var(--jpc-red-dark); }

/* ── ZONE 2: Breakdown (middle, ~33%) ── */
.jpc-calc-zone-breakdown {
    flex: 0 0 33%;
    padding: 32px 24px 24px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.jpc-bd-title-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--jpc-dark2);
    margin-bottom: 18px;
}

/* Keep existing .jpc-bd-row, .jpc-bd-label, .jpc-bd-val */
.jpc-bd-cif-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0 8px;
}
.jpc-bd-cif-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--jpc-dark2);
}
.jpc-bd-cif-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--jpc-red);
}

/* Responsive — stack vertically on mobile */
@media (max-width: 991px) {
    .jpc-calc-card-outer { flex-direction: column; }
    .jpc-calc-zone-form { flex: none; padding: 24px 20px; border-right: none; border-bottom: 1px solid #f0f0f0; }
    .jpc-calc-zone-breakdown { flex: none; padding: 24px 20px; border-right: none; border-bottom: 1px solid #f0f0f0; }
    .jpc-calc-grid { grid-template-columns: 1fr; }
}

/* ── Product-detail CIF calc: vehicle strip ── */
.pd-vehicle-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f8fa;
    border: 1.5px solid var(--jpc-border);
    border-radius: 7px;
    padding: 10px 14px;
    position: relative;
}
.pd-vehicle-strip-icon {
    width: 38px; height: 38px;
    background: #1a2e44;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
    flex-shrink: 0;
}
.pd-vehicle-strip-info { flex: 1; min-width: 0; }
.pd-vehicle-name {
    font-size: 0.84rem; font-weight: 700; color: var(--jpc-dark2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-vehicle-sku { font-size: 0.71rem; color: #aaa; margin-top: 2px; }
.pd-vehicle-price {
    font-size: 0.9rem; font-weight: 900; color: var(--jpc-red);
    white-space: nowrap; flex-shrink: 0;
}

/* Consistent form labels */
.jpc-form-label {
    display: block;
    font-size: 0.69rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

/* Consistent form controls — standalone (works in any container) */
.jpc-fc {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 32px 0 11px;
    border: 1.5px solid #dde2e8;
    border-radius: 5px;
    font-size: 0.83rem;
    color: #333;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3e%3cpath d='M0 0l5 6 5-6z' fill='%23999'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .15s;
    line-height: 1;
}
.jpc-fc:focus {
    border-color: var(--jpc-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,53,51,0.12);
}
/* .jpc-fc also styles plain <input type="text"> used as a searchable-select
   (destination country/port, fee-type pickers) — unlike a native <select>,
   a text input never truncates long values on its own, so a value wider
   than the field just gets clipped mid-character behind the dropdown arrow.
   Scoped to <input> only so real <select> elements keep native rendering. */
input.jpc-fc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jpc-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 42px;
}
.jpc-radio-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
    user-select: none;
}
.jpc-radio-label input[type="radio"] {
    accent-color: var(--jpc-red);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.jpc-calc-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--jpc-dark2);
    margin-bottom: 4px;
}
.jpc-calc-card .jpc-calc-subtitle {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 22px;
    line-height: 1.5;
}

.jpc-btn-calc {
    display: block;
    width: 100%;
    height: 46px;
    background: var(--jpc-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: 0.3px;
    margin-top: 6px;
}
.jpc-btn-calc:hover { background: var(--jpc-red-dark); }

/* Breakdown card */
.jpc-bd-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--jpc-dark2);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jpc-border);
}
.jpc-bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 0.82rem;
}
.jpc-bd-row:last-of-type { border-bottom: none; }
.jpc-bd-label { color: #666; }
.jpc-bd-val { font-weight: 600; color: var(--jpc-dark2); }

.jpc-bd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 6px;
    margin-top: 8px;
    border-top: 2px solid var(--jpc-border);
}
.jpc-bd-total-label { font-size: 0.85rem; font-weight: 700; color: var(--jpc-dark2); }
.jpc-bd-total-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--jpc-red);
}
.jpc-calc-note {
    font-size: 0.67rem;
    color: #bbb;
    margin-top: 10px;
    line-height: 1.5;
    font-style: italic;
}

/* Shared Malaysia customs breakdown; product detail applies its own scoped presentation. */
.jpc-my-duty-card {
    border: 1.5px solid var(--jpc-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.jpc-my-duty-header {
    background: var(--jpc-red);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.jpc-my-duty-body { padding: 4px 14px 10px; }
.jpc-my-duty-body .jpc-bd-row { font-size: 0.83rem; }

/* Malaysia export notice (vehicle too old for Malaysia) — product page popup + add-to-cart response */
.jpc-my-export-dialog { max-width: 440px; }
.jpc-my-export-dialog .modal-content { border: none; border-radius: var(--jpc-radius); box-shadow: var(--jpc-shadow); }
.jpc-my-export { padding: 32px 28px 28px; text-align: center; }
.jpc-my-export-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fdecec; color: var(--jpc-red); font-size: 28px;
}
.jpc-my-export-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--jpc-dark); line-height: 1.4; }
.jpc-my-export-text { margin: 0 0 22px; font-size: 0.88rem; color: #555; line-height: 1.6; }
.jpc-my-export-btn { width: 100%; height: 46px !important; }
@media (max-width: 575.98px) {
    .jpc-my-export-dialog { margin: 16px; }
    .jpc-my-export { padding: 28px 20px 20px; }
}
.jpc-my-duty-highlight {
    background: #fff5f5;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
    border-bottom: 1px solid #f4f4f4;
}
.jpc-my-duty-final { border-top: 1px dashed #e5e7eb; margin-top: 4px; }

/* Shipping image column */
.jpc-ship-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--jpc-shadow);
    height: 100%;
}
.jpc-ship-col i { font-size: 5rem; color: var(--jpc-red); opacity: 0.65; }
.jpc-ship-col span { font-size: 0.78rem; color: #aaa; margin-top: 10px; line-height: 1.5; display: block; }

/* =====================================================
   HOW IT WORKS + WHY CHOOSE  (combined, same row)
   ===================================================== */
.jpc-howwhy-section {
    background: #fff;
    padding: 56px 0 60px;
}

/* ---- LEFT: How It Works (HORIZONTAL steps) ---- */
.jpc-how-col { padding-right: 24px; }

/* Horizontal step row with dashed connector above icons */
.jpc-steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-top: 8px;
}

/* Dashed horizontal line running through center of icons */
.jpc-steps-row::before {
    content: '';
    position: absolute;
    top: 23px;                          /* half of icon height (48px/2 = 24px - 1px) */
    left: calc(10% + 4px);
    right: calc(10% + 4px);
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--jpc-border) 0,
        var(--jpc-border) 8px,
        transparent 8px,
        transparent 18px
    );
    z-index: 0;
}

.jpc-step-item {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    position: relative;
    z-index: 1;
    max-width: 20%;
}

.jpc-step-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--jpc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--jpc-red);
    box-shadow: 0 2px 10px rgba(212,53,51,0.12);
    margin: 0 auto 10px;
    transition: all .2s;
    position: relative;
    z-index: 1;
}
.jpc-step-item:hover .jpc-step-icon-wrap {
    background: var(--jpc-red);
    color: #fff;
    border-color: var(--jpc-red);
    box-shadow: 0 4px 16px rgba(212,53,51,0.3);
}

.jpc-step-num {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--jpc-red);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
    display: block;
}
.jpc-step-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jpc-dark2);
    line-height: 1.3;
    margin-bottom: 3px;
    display: block;
}
.jpc-step-sub {
    font-size: 0.68rem;
    color: #aaa;
    line-height: 1.4;
    display: block;
}

/* Vertical divider between How and Why cols */
.jpc-howwhy-divider {
    width: 1px;
    background: var(--jpc-border);
    align-self: stretch;
    margin: 0 auto;
}

/* ---- RIGHT: Why Choose ---- */
.jpc-why-col { padding-left: 24px; }

.jpc-why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.jpc-why-icon-wrap {
    width: 44px; height: 44px;
    min-width: 44px;
    border-radius: 8px;
    background: #fff3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jpc-red);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.jpc-why-text h5 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--jpc-dark2);
    margin-bottom: 3px;
}
.jpc-why-text p {
    font-size: 0.76rem;
    color: #888;
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 991px) {
    .jpc-how-col  { padding-right: 15px; margin-bottom: 36px; }
    .jpc-why-col  { padding-left: 15px; border-top: 1px solid var(--jpc-border); padding-top: 32px; }
    .jpc-howwhy-divider { display: none !important; }
    /* On tablet, wrap steps into 2-3 per row */
    .jpc-steps-row { flex-wrap: wrap; justify-content: flex-start; }
    .jpc-steps-row::before { display: none; }
    .jpc-step-item { flex: 0 0 33.333%; max-width: 33.333%; margin-bottom: 24px; }
}
@media (max-width: 767px) {
    .jpc-howwhy-section { padding: 40px 0 44px; }
    .jpc-step-item { flex: 0 0 50%; max-width: 50%; }
}
/* Hero responsive */
@media (max-width: 1199px) { .jpc-hero-headline { font-size: 2.4rem; } }
@media (max-width: 991px) {
    .jpc-hero { min-height: auto; }
    .jpc-hero-content { padding: 40px 0 32px; }
    .jpc-hero-headline { font-size: 2rem; }
}
@media (max-width: 767px) {
    .jpc-hero-content { padding: 30px 0 24px; }
    .jpc-hero-headline { font-size: 1.65rem; }
    .jpc-hero-sub { font-size: 0.84rem; }
    .jpc-search-box { padding: 16px 14px; }
}
@media (max-width: 480px) {
    .jpc-hero-headline { font-size: 1.45rem; }
}

/* =====================================================
   SUBSCRIBE
   ===================================================== */
.jpc-subscribe-section {
    background: var(--jpc-dark);
    padding: 36px 0;
}
.jpc-sub-left {
    display: flex;
    align-items: center;
}
.jpc-sub-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 14px;
    flex-shrink: 0;
}
.jpc-sub-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.jpc-sub-text p {
    font-size: 0.77rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.jpc-sub-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jpc-sub-input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 5px;
    font-size: 0.84rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    transition: border .2s;
    min-width: 0;
}
.jpc-sub-input::placeholder { color: rgba(255,255,255,0.38); }
.jpc-sub-input:focus { border-color: rgba(255,255,255,0.45); }
.jpc-btn-sub {
    height: 46px;
    padding: 0 24px;
    background: var(--jpc-red);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.jpc-btn-sub:hover { background: var(--jpc-red-dark); }

@media (max-width: 767px) {
    .jpc-subscribe-section { padding: 28px 0; }
    .jpc-sub-left { margin-bottom: 18px; }
    .jpc-sub-form { width: 100%; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.jpc-footer {
    background: #12121e;
    color: #999;
    padding: 52px 0 0;
}
.jpc-footer-logo-text {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--jpc-red);
    letter-spacing: -0.5px;
    line-height: 1;
    display: block;
}
.jpc-footer-logo-sub {
    font-size: 0.48rem;
    letter-spacing: 2.5px;
    color: #444;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}
.jpc-footer-desc {
    font-size: 0.77rem;
    color: #666;
    line-height: 1.7;
    margin: 14px 0 20px;
}
.jpc-footer h6 {
    font-size: 0.74rem;
    font-weight: 800;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.jpc-footer ul { list-style: none; padding: 0; margin: 0; }
.jpc-footer ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 2.3;
    display: block;
    transition: color .15s;
}
.jpc-footer ul li a:hover { color: var(--jpc-red); }

.jpc-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.77rem;
    color: #666;
    line-height: 1.55;
}
.jpc-footer-contact-item i {
    color: var(--jpc-red);
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.jpc-social-links { display: flex; gap: 8px; margin-top: 4px; }
.jpc-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px; height: 33px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #777;
    font-size: 0.9rem;
    transition: all .2s;
    text-decoration: none;
}
.jpc-social-links a:hover { background: var(--jpc-red); color: #fff; }

.jpc-footer-bottom {
    background: rgba(0,0,0,0.35);
    margin-top: 48px;
    padding: 14px 0;
    text-align: center;
    font-size: 0.71rem;
    color: #444;
}

/* =====================================================
   HERO RESPONSIVE
   ===================================================== */
@media (max-width: 1199px) { .jpc-hero-headline { font-size: 2.5rem; } }

@media (max-width: 991px) {
    .jpc-hero { min-height: auto; }
    .jpc-hero-content { padding: 44px 0; }
    .jpc-hero-headline { font-size: 2rem; }
    .jpc-hero .col-lg-5 { margin-bottom: 24px; }
}

@media (max-width: 767px) {
    .jpc-hero { min-height: auto; }
    .jpc-hero-content { padding: 32px 0 28px; }
    .jpc-hero-headline { font-size: 1.65rem; }
    .jpc-hero-sub { font-size: 0.85rem; margin: 0.75rem 0 1.25rem; }
    .jpc-search-box { padding: 16px 14px; }
    /* Stack Year/Price/Mileage range pairs vertically on very small screens */
    .jpc-range-pair .jpc-select { font-size: 0.78rem; }
    .jpc-section-head { padding: 32px 0 14px; }
}

@media (max-width: 480px) {
    .jpc-hero-headline { font-size: 1.45rem; }
    .jpc-search-box { padding: 14px 12px; border-radius: 8px; }
    .jpc-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.jpc-mb-0 { margin-bottom: 0 !important; }
.jpc-mt-auto { margin-top: auto; }

/* =====================================================
   PRODUCT DETAIL — JapanCars Theme
   ===================================================== */

/* ── Action Button Group ── */
.jpc-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

/* Shared base for both action buttons */
.jpc-btn-primary,
.jpc-btn-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    height: 52px !important;
    border: none !important;
    border-radius: 5px !important;
    font-family: 'Inter', 'Public Sans', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    cursor: pointer !important;
    white-space: nowrap;
    transition: background .18s, opacity .18s !important;
    padding: 0 16px !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    transform: none !important;
}
.jpc-btn-primary i,
.jpc-btn-secondary i { font-size: 1.15rem; line-height: 1; }

/* Buy Now — red */
.jpc-btn-primary {
    background: var(--jpc-red) !important;
    color: #fff !important;
}
.jpc-btn-primary:hover,
.jpc-btn-primary:focus {
    background: var(--jpc-red-dark) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Estimate Total Cost — outlined */
.jpc-btn-secondary {
    background: #fff !important;
    color: #1a2a3e !important;
    border: 2px solid #1a2a3e !important;
}
.jpc-btn-secondary:hover,
.jpc-btn-secondary:focus {
    background: #1a2a3e !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Out of stock — neutral, full width */
.jpc-btn-disabled {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    width: 100% !important;
    height: 52px !important;
    border: none !important;
    border-radius: 5px !important;
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: not-allowed !important;
    letter-spacing: 0.3px;
    box-shadow: none !important;
}

/* Sales chat remains a quiet, full-width supporting action. */
.jpc-btn-whatsapp-outline {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid #cfe7d8;
    background: #f4faf6;
    color: #22663c;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}
.jpc-btn-whatsapp-outline i { font-size: 18px; line-height: 1; }
.jpc-btn-whatsapp-outline:hover,
.jpc-btn-whatsapp-outline:focus-visible { background: #eaf5ee; border-color: #b4d5bf; color: #1f5734; text-decoration: none; }

@media (max-width: 480px) {
    .jpc-action-btns { grid-template-columns: 1fr; }
}

/* Red action links (replaces text-blue) */
.jpc-pd-link {
    color: var(--jpc-red) !important;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.jpc-pd-link:hover { color: var(--jpc-red-dark) !important; }
.jpc-pd-link.animate-underline-red {
    border-bottom: 1px solid transparent;
}
.jpc-pd-link.animate-underline-red:hover { border-bottom-color: var(--jpc-red-dark); }

/* Product detail section title (matches jpc-section-title but for subheadings) */
.jpc-pd-section-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--jpc-dark2);
    margin: 0 0 18px;
    position: relative;
    padding-left: 12px;
}
.jpc-pd-section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--jpc-red);
    border-radius: 2px;
}

/* Related / From this Seller carousels — search-page cards (.jpc-card), 16px gutter like the search grid */
.jpc-pd-card-carousel .slick-list { margin: 0 -8px; padding: 4px 0 8px; } /* room for the card's hover lift + shadow */
.jpc-pd-card-carousel .slick-track { display: flex; }
.jpc-pd-card-carousel .slick-slide { height: auto; }
.jpc-pd-card-carousel .slick-slide > div { height: 100%; }
.jpc-pd-card-carousel .carousel-box { height: 100%; padding: 0 8px; container-type: inline-size; }
/* Card 215px wide or less (4–5 per row on a laptop/tablet): use the search page's
   compact mobile card styles, keyed on the card's own width instead of the viewport. */
@media (min-width: 768px) { /* below 768px the search page's own mobile card rules already apply */
    @container (max-width: 215px) {
        .jpc-pd-card-carousel .jpc-card-img-wrap { height: 130px; }
        .jpc-pd-card-carousel .jpc-card-meta { padding: 5px 6px; font-size: 0.62rem; }
        .jpc-pd-card-carousel .jpc-card-stock { font-size: 0.62rem; }
        .jpc-pd-card-carousel .jpc-card-body { padding: 5px 6px 3px; }
        .jpc-pd-card-carousel .jpc-card-name { font-size: 0.78rem; margin-bottom: 4px; }
        .jpc-pd-card-carousel .jpc-card-specs-grid { grid-template-columns: auto auto; row-gap: 3px; }
        .jpc-pd-card-carousel .jpc-card-spec,
        .jpc-pd-card-carousel .jpc-card-attr { font-size: 0.65rem; gap: 3px; }
        .jpc-pd-card-carousel .jpc-card-spec i,
        .jpc-pd-card-carousel .jpc-card-attr i { font-size: 0.75rem; }
        .jpc-pd-card-carousel .jpc-card-price-row { padding: 6px 8px 4px; }
        .jpc-pd-card-carousel .jpc-card-price-label { font-size: 0.62rem; }
        .jpc-pd-card-carousel .jpc-card-price-val { font-size: 0.92rem; }
        .jpc-pd-card-carousel .jpc-card-footer { padding: 0 8px 8px; gap: 5px; }
        .jpc-pd-card-carousel .jpc-card-btn { padding: 6px 4px; font-size: 0.65rem; overflow: hidden; text-overflow: ellipsis; }
    }
}

/* Specifications adapt to their panel width, including the half-width desktop panel. */
.jpc-pd-specs-panel { container-type: inline-size; }
.jpc-pd-specs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}
.jpc-pd-spec {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    align-items: baseline;
    gap: 16px;
    min-width: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.jpc-pd-spec:nth-child(odd) { background: #fafafa; }
.jpc-pd-spec:last-child { border-bottom: 0; }
.jpc-pd-spec dt,
.jpc-pd-spec dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
.jpc-pd-spec dt { color: #1a2a3e; font-weight: 600; }
.jpc-pd-spec dd { color: var(--jpc-dark2); }
@container (min-width: 560px) {
    .jpc-pd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpc-pd-spec:nth-child(odd) { background: transparent; }
    .jpc-pd-spec:nth-child(4n+1),
    .jpc-pd-spec:nth-child(4n+2) { background: #fafafa; }
    .jpc-pd-spec:nth-child(odd) { border-right: 1px solid #f0f0f0; }
    .jpc-pd-spec:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* Nav tabs — red underline on active/hover */
.jpc-pd-tab-link {
    color: #888 !important;
    font-weight: 700 !important;
    transition: color .15s !important;
    border-bottom: 3px solid transparent !important;
}
.jpc-pd-tab-link:hover,
.jpc-pd-tab-link.active {
    color: var(--jpc-dark2) !important;
    border-bottom-color: var(--jpc-red) !important;
}

/* Breadcrumb theme override */
.jpc-breadcrumb li a { color: var(--jpc-dark2) !important; }
.jpc-breadcrumb li a:hover { color: var(--jpc-red) !important; }
.jpc-breadcrumb i { color: #bbb !important; }

/* Discount badge — JPC red */
.jpc-discount-badge {
    background: var(--jpc-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Pricing block accent */
.jpc-pricing-block {
    background: var(--jpc-light);
    border: 1.5px solid var(--jpc-border);
    border-radius: 8px;
    padding: 16px 20px;
}

/* Related / section panels */
.jpc-panel {
    background: #fff;
    border: 1.5px solid var(--jpc-border);
    border-radius: 8px;
    padding: 24px 28px;
}

/* Seller / brand info cards */
.jpc-info-card {
    background: var(--jpc-light);
    border: 1.5px solid var(--jpc-border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.jpc-info-card .jpc-info-logo {
    width: 48px; height: 48px;
    background: #fff;
    border: 1.5px solid var(--jpc-border);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* Flash Sale box — keep dark, add red accent */
.flash-sale { background: linear-gradient(135deg, #1a2e44 0%, var(--jpc-dark2) 100%); border-radius: 8px; }

/* Today's Deal box */
.jpc-todays-deal {
    background: linear-gradient(135deg, #1a2e44 0%, var(--jpc-dark2) 100%);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Description wrapper */
#description .py-30px { border: 1.5px solid var(--jpc-border) !important; border-radius: 8px !important; }

/* Tab underline — override to red */
.tab-underline { background: var(--jpc-red) !important; height: 3px !important; }

@media (max-width: 767px) {
    .jpc-btn-primary, .jpc-btn-secondary { padding: 12px 16px; font-size: 0.85rem; }
    .jpc-panel { padding: 16px 16px; }
    .jpc-fob-price { font-size: 1.5rem !important; }
    .jpc-fob-unit  { font-size: 0.85rem !important; }
    .jpc-qty-wrap { align-items: flex-start !important; }
    .jpc-qty-wrap > div:last-child { width: 100%; margin-top: 8px; justify-content: space-between; }
}
.jpc-fob-price { font-size: 1.75rem; }
.jpc-fob-unit  { font-size: 1rem; }

/* =====================================================
   FREE QUOTE FORM — Product Detail Page
   ===================================================== */
.jpc-quote-section { margin-top: 32px; }

.jpc-quote-card {
    background: #fff;
    border: 1.5px solid var(--jpc-border);
    border-radius: 10px;
    overflow: hidden;
}

/* Header bar */
.jpc-quote-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 20px 24px 4px;
}
.jpc-quote-header-icon {
    font-size: 1.8rem;
    color: var(--jpc-red);
    flex-shrink: 0;
}
.jpc-quote-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a2a3e;
    margin: 0;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.jpc-quote-subtitle {
    font-size: 0.72rem;
    color: #888;
    margin: 2px 0 0;
}

/* Product strip */
.jpc-quote-product-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--jpc-light);
    border-bottom: 1.5px solid var(--jpc-border);
    padding: 10px 24px;
    font-size: 0.82rem;
    color: #555;
}
.jpc-quote-product-strip i { color: var(--jpc-red); font-size: 1rem; }
.jpc-quote-product-name { flex: 1; font-weight: 600; color: var(--jpc-dark2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jpc-quote-product-price { font-weight: 800; color: var(--jpc-red); white-space: nowrap; }

/* Form body */
.jpc-quote-card form {
    padding: 20px 24px 24px;
}

/* Inputs */
.jpc-quote-input,
.jpc-quote-select,
.jpc-quote-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde2e8;
    border-radius: 5px;
    font-size: 0.84rem;
    color: #333;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.jpc-quote-input:focus,
.jpc-quote-select:focus,
.jpc-quote-textarea:focus {
    border-color: var(--jpc-red);
    box-shadow: 0 0 0 3px rgba(212,53,51,0.1);
}
.jpc-quote-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3e%3cpath d='M0 0l5 6 5-6z' fill='%23999'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.jpc-quote-textarea { resize: vertical; min-height: 110px; }

/* Contact channels */
.jpc-quote-channels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.jpc-channel-label {
    cursor: pointer;
    user-select: none;
}
.jpc-channel-label input[type="checkbox"] { display: none; }
.jpc-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid #dde2e8;
    background: #f7f8fa;
    color: #555;
    transition: all .15s;
    cursor: pointer;
}
.jpc-channel-label input:checked + .jpc-channel-badge {
    border-color: currentColor;
    color: #fff;
}
.jpc-channel-wa    { } .jpc-channel-label input:checked + .jpc-channel-wa    { background: #25d366; border-color: #25d366; }
.jpc-channel-viber { } .jpc-channel-label input:checked + .jpc-channel-viber { background: #7360f2; border-color: #7360f2; }
.jpc-channel-line  { } .jpc-channel-label input:checked + .jpc-channel-line  { background: #06c755; border-color: #06c755; }
.jpc-channel-badge:hover { border-color: #aaa; }

/* Submit button */
.jpc-btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 40px;
    background: var(--jpc-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background .18s;
    min-width: 220px;
}
.jpc-btn-quote:hover { background: var(--jpc-red-dark); color: #fff; }
.jpc-btn-quote i { font-size: 1.2rem; }

@media (max-width: 767px) {
    .jpc-quote-card form { padding: 16px; }
    .jpc-quote-header { padding: 14px 16px; }
    .jpc-quote-product-strip { padding: 8px 16px; }
    .jpc-btn-quote { width: 100%; min-width: unset; padding: 0 20px; }
}

/* =====================================================
   CIF CALCULATOR — Currency Selector
   ===================================================== */
.jpc-currency-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
    flex-wrap: wrap;
}
.jpc-currency-bar-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-right: 4px;
    white-space: nowrap;
}
.jpc-cur-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border: 1.5px solid var(--jpc-border);
    border-radius: 20px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.jpc-cur-btn:hover { border-color: var(--jpc-red); color: var(--jpc-red); }
.jpc-cur-btn.active {
    background: var(--jpc-red);
    border-color: var(--jpc-red);
    color: #fff;
}
.jpc-cur-rate-note {
    font-size: 0.68rem;
    color: #bbb;
    margin-left: auto;
    white-space: nowrap;
}

/* =====================================================
   PRODUCT CARD (reusable — search, home, wishlist)
   ===================================================== */
.jpc-card {
    border: 1px solid var(--jpc-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.jpc-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }

/* Image */
.jpc-card-img-link { display: block; text-decoration: none; flex-shrink: 0; }
.jpc-card-img-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #eaeaea;
}
.jpc-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.jpc-card:hover .jpc-card-img-wrap img { transform: scale(1.06); }

.jpc-card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    background: linear-gradient(160deg,#1c2e3e 0%,#2d4a61 100%);
}

/* Wishlist button */
.jpc-card-wish {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: 0.95rem;
    z-index: 2;
    transition: color .15s, background .15s;
}
.jpc-card-wish:hover { color: var(--jpc-red); background: #fff; }

/* Badges */
.jpc-card-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.jpc-card-badge--hot { background: var(--jpc-red); color: #fff; }
.jpc-card-badge--new { background: #16a34a; color: #fff; }

/* Meta: location + stock */
.jpc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px;
    font-size: 0.68rem;
    color: #555;
    gap: 4px;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}
.jpc-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
    min-width: 0;
}
.jpc-card-flag-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1.33em;
    line-height: 1em;
    font-size: 0.95rem;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    vertical-align: middle;
}
.jpc-card-stock {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    color: #888;
    font-size: 0.68rem;
}

/* Card body */
.jpc-card-body { padding: 6px 8px 4px; flex-grow: 1; overflow: hidden; }

.jpc-card-name-link { text-decoration: none !important; display: block; }
.jpc-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--jpc-dark2);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.jpc-card-name-link:hover .jpc-card-name { color: var(--jpc-red); }

/* Specs + Fuel/Drive — 3-col grid, 2 rows thẳng cột nhau */
.jpc-card-specs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    column-gap: 6px;
    row-gap: 5px;
    margin-bottom: 6px;
    overflow: hidden;
}
.jpc-card-spec,
.jpc-card-attr {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #444;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.jpc-card-spec > span,
.jpc-card-attr > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.jpc-card-spec i,
.jpc-card-attr i {
    font-size: 0.8rem;
    color: #888;
    flex-shrink: 0;
}

/* Price row */
.jpc-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 12px 6px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}
.jpc-card-price-label {
    font-size: 0.7rem;
    color: #aaa;
    flex-shrink: 0;
}
.jpc-card-price-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--jpc-red);
    line-height: 1;
}

/* Footer buttons */
.jpc-card-footer {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}
.jpc-card-btn {
    flex: 1;
    text-align: center;
    padding: 7px 6px;
    border-radius: 4px;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none !important;
    white-space: nowrap;
    display: block;
}
.jpc-card-btn--outline {
    border: 1px solid #ccc;
    color: var(--jpc-dark2) !important;
    background: #fff;
}
.jpc-card-btn--outline:hover {
    border-color: var(--jpc-dark2);
    background: var(--jpc-dark2);
    color: #fff !important;
}
.jpc-card-btn--red {
    background: var(--jpc-red);
    border: 1px solid var(--jpc-red);
    color: #fff !important;
}
.jpc-card-btn--red:hover { background: var(--jpc-red-dark); border-color: var(--jpc-red-dark); }

/* ── Product card: mobile responsive (2-column layout) ── */
@media (max-width: 767px) {
    /* Image height nhỏ hơn trên mobile */
    .jpc-card-img-wrap { height: 130px; }

    /* Meta row: compact */
    .jpc-card-meta { padding: 5px 6px; font-size: 0.62rem; }
    .jpc-card-stock { font-size: 0.62rem; }

    /* Body */
    .jpc-card-body { padding: 5px 6px 3px; }
    .jpc-card-name { font-size: 0.78rem; margin-bottom: 4px; }

    /* Specs: cho phép wrap, giảm font */
    .jpc-card-specs-grid {
        grid-template-columns: auto auto;
        row-gap: 3px;
    }
    .jpc-card-spec,
    .jpc-card-attr { font-size: 0.65rem; gap: 3px; }
    .jpc-card-spec i,
    .jpc-card-attr i { font-size: 0.75rem; }

    /* Price row */
    .jpc-card-price-row { padding: 6px 8px 4px; }
    .jpc-card-price-label { font-size: 0.62rem; }
    .jpc-card-price-val { font-size: 0.92rem; }

    /* Footer buttons: giảm padding, font nhỏ */
    .jpc-card-footer { padding: 0 8px 8px; gap: 5px; }
    .jpc-card-btn {
        padding: 6px 4px;
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Search results grid (tablet/desktop): gutters-16 gives 16px left/right padding
   per column, so make the top/bottom padding match — even spacing all around. */
@media (min-width: 768px) {
    #products-row.gutters-16 > .col { padding-top: 16px; padding-bottom: 16px; }
}

/* Màn hình rất nhỏ (<400px): 2 cột vẫn OK */
@media (max-width: 400px) {
    .jpc-card-img-wrap { height: 110px; }
    .jpc-card-name { font-size: 0.72rem; }
    .jpc-card-price-val { font-size: 0.82rem; }
    .jpc-card-btn { font-size: 0.6rem; padding: 5px 2px; }
}

/* =====================================================
   SEARCH SIDEBAR (filter panel)
   ===================================================== */
.jpc-filter-sidebar {
    background: #fff;
    border: 1px solid var(--jpc-border);
    border-radius: 10px;
    padding-bottom: 4px;
    overflow: hidden;
}

.jpc-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    padding-bottom: 0px;
    /* border-bottom: 1px solid var(--jpc-border); */
}
.jpc-filter-section-end {
    padding-bottom: 20px !important;
    border-bottom: none !important;
}
.jpc-filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--jpc-dark2);
    margin: 0;
}
.jpc-filter-clear {
    font-size: 0.72rem;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color .15s;
}
.jpc-filter-clear:hover { color: var(--jpc-red); }

.jpc-filter-section {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.jpc-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--jpc-dark2);
    margin-bottom: 8px;
    display: block;
}
.jpc-filter-select {
    width: 100%;
    height: 34px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    padding: 0 10px;
    font-size: 0.8rem;
    color: var(--jpc-dark2);
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.jpc-filter-select:focus { outline: none; border-color: var(--jpc-red); }

/* Searchable dropdowns — native <select> stays for form
   submission, a custom toggle + search panel sits on top so buyers can type-to-filter
   the long option lists instead of scrolling a native list. */
.jpc-ss { position: relative; }
.jpc-range-pair > .jpc-ss,
.jpc-filter-range > .jpc-ss { flex: 1; min-width: 0; }
.jpc-search-box .jpc-ss-toggle { height: 40px; font-size: 0.82rem; }
.jpc-search-sort-wrap > .jpc-ss { width: 180px; }
.jpc-per-page-wrap > .jpc-ss { width: 66px; }
.jpc-range-pair .jpc-ss-panel,
.jpc-filter-range .jpc-ss-panel,
.jpc-per-page-wrap .jpc-ss-panel { min-width: 160px; right: auto; }
.jpc-range-pair > .jpc-ss:last-child .jpc-ss-panel,
.jpc-filter-range > .jpc-ss:last-child .jpc-ss-panel,
.jpc-per-page-wrap .jpc-ss-panel { left: auto; right: 0; }
.jpc-ss-native { display: none !important; }
.jpc-ss-toggle {
    width: 100%;
    height: 34px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    padding: 0 10px;
    font-size: 0.8rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    text-align: left;
}
.jpc-ss-toggle:focus,
.jpc-ss-toggle.open { outline: none; border-color: var(--jpc-red); }
.jpc-ss-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--jpc-dark2);
}
.jpc-ss-value:empty::before { content: attr(data-placeholder); color: #999; }
.jpc-ss-toggle i {
    font-size: 0.7rem;
    color: #999;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.jpc-ss-toggle.open i { transform: rotate(180deg); }

.jpc-ss-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    z-index: 60;
    padding: 6px;
}
.jpc-ss-search {
    width: 100%;
    height: 32px;
    border: 1px solid var(--jpc-border);
    border-radius: 4px;
    padding: 0 8px;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--jpc-dark2);
}
.jpc-ss-search:focus { outline: none; border-color: var(--jpc-red); }
.jpc-ss-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}
.jpc-ss-options li {
    padding: 7px 8px;
    font-size: 0.8rem;
    color: var(--jpc-dark2);
    cursor: pointer;
    border-radius: 4px;
}
.jpc-ss-options li:hover { background: #f5f5f5; }
.jpc-ss-options li.active { background: var(--jpc-red); color: #fff; }
.jpc-ss-options li.jpc-ss-empty { color: #999; text-align: center; cursor: default; }
.jpc-ss-options li.jpc-ss-empty:hover { background: none; }

.jpc-filter-range {
    display: flex;
    align-items: center;
    gap: 6px;
}
.jpc-filter-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    padding: 0 8px;
    font-size: 0.78rem;
    color: var(--jpc-dark2);
}
.jpc-filter-input:focus { outline: none; border-color: var(--jpc-red); }
.jpc-filter-range-sep { color: #bbb; font-size: 0.85rem; flex-shrink: 0; }
.jpc-filter-range-unit {
    flex-shrink: 0;
    height: 34px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    padding: 0 6px;
    font-size: 0.75rem;
    color: #555;
    background: #f7f8fa;
    cursor: default;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Checkbox grid */
.jpc-filter-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 10px;
}
.jpc-filter-checks--3col { grid-template-columns: 1fr 1fr 1fr; }
.jpc-filter-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--jpc-dark2);
    cursor: pointer;
    user-select: none;
}
.jpc-filter-check-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--jpc-red);
    cursor: pointer;
    flex-shrink: 0;
}

/* Search top bar */
.jpc-search-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jpc-border);
}
.jpc-search-results-label { font-size: 0.7rem; color: #888; }
.jpc-search-sort-wrap { display: flex; align-items: center; gap: 8px; }
.jpc-search-sort-label { font-size: 0.78rem; color: #888; white-space: nowrap; }
.jpc-search-sort-select {
    height: 34px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    padding: 0 30px 0 10px;
    font-size: 0.78rem;
    color: var(--jpc-dark2);
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    min-width: 160px;
}
.jpc-search-sort-select:focus { outline: none; border-color: var(--jpc-red); }

/* View toggle buttons */
.jpc-view-btns { display: flex; align-items: center; gap: 4px; }
.jpc-view-btn {
    width: 32px; height: 32px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
    color: #aaa;
}
.jpc-view-btn:hover, .jpc-view-btn.active { border-color: var(--jpc-dark2); background: var(--jpc-dark2); color: #fff; }
.jpc-view-btn svg { display: block; }

/* Pagination bottom bar — căn giữa */
.jpc-pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.jpc-per-page-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 0.78rem; color: #888; }
.jpc-pagination-center { display: flex; justify-content: center; }

/* Sidebar keyword search */
.jpc-filter-search-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--jpc-red);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.jpc-filter-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    height: 36px;
    font-size: 0.8rem;
    color: var(--jpc-dark2);
    background: transparent;
}
.jpc-filter-search-btn {
    background: var(--jpc-red);
    border: none;
    color: #fff;
    width: 38px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
    transition: background .15s;
}
.jpc-filter-search-btn:hover { background: var(--jpc-red-dark); }
.jpc-per-page-select {
    height: 32px;
    border: 1px solid var(--jpc-border);
    border-radius: 5px;
    padding: 0 24px 0 8px;
    font-size: 0.78rem;
    color: var(--jpc-dark2);
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}
.jpc-per-page-select:focus { outline: none; border-color: var(--jpc-red); }

   USER INQUIRY LIST
   ===================================================== */
.jpc-inquiry-list {}

.jpc-inq-card {
    background: #fff;
    border: 1px solid var(--jpc-border);
    border-radius: var(--jpc-radius);
    overflow: hidden;
    box-shadow: var(--jpc-shadow);
}

/* Header bar — mimics admin table header style */
.jpc-inq-header {
    display: grid;
    grid-template-columns: 36px 120px 100px 1fr 120px 120px 90px;
    gap: 0 12px;
    align-items: center;
    background: #f7f8fa;
    border-bottom: 1px solid var(--jpc-border);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.jpc-inq-col-sno   { color: #999; }
.jpc-inq-col-stock { font-family: monospace; font-size: 0.78rem; }
.jpc-inq-col-date  { color: #666; font-size: 0.78rem; }
.jpc-inq-col-vehicle { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jpc-inq-col-chassis { font-size: 0.75rem; color: #999; }
.jpc-inq-col-budget { font-size: 0.78rem; color: var(--jpc-red); font-weight: 700; }
.jpc-inq-col-actions { text-align: right; }

/* Detail row */
.jpc-inq-detail {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--jpc-border);
}

.jpc-inq-thumb {
    width: 110px;
    min-width: 110px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f1f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jpc-inq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jpc-inq-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}

.jpc-inq-info {
    font-size: 0.82rem;
    line-height: 1.8;
    color: #444;
}
.jpc-inq-info b { color: #222; }

.jpc-inq-dealer-reply {
    color: #555;
}

.jpc-inq-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 90px;
    align-items: flex-end;
}
.jpc-inq-btns .btn {
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 4px 10px;
}

/* Stage progress bar */
.jpc-inq-stage {
    padding: 12px 16px 14px;
    background: #fafafa;
}

.jpc-stage-bar {
    display: flex;
    align-items: center;
    gap: 0;
}

.jpc-stage-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.jpc-stage-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    transition: all .2s;
}
.jpc-stage-step.done .jpc-stage-circle {
    background: #28a745;
    border-color: #28a745;
}

.jpc-stage-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #999;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.2;
    max-width: 70px;
}
.jpc-stage-step.done .jpc-stage-label {
    color: #28a745;
}

.jpc-stage-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin-bottom: 22px;
    transition: background .2s;
}
.jpc-stage-line.done {
    background: #28a745;
}

/* Responsive */
@media (max-width: 767px) {
    /* Header: chỉ giữ No + Date + Status */
    .jpc-inq-header {
        grid-template-columns: 28px 1fr auto;
        font-size: 0.72rem;
        padding: 8px 12px;
    }
    .jpc-inq-col-stock   { display: none; }
    .jpc-inq-col-vehicle { display: none; }
    .jpc-inq-col-chassis { display: none; }
    .jpc-inq-col-budget  { display: none; }
    .jpc-inq-col-date    { order: 2; }
    .jpc-inq-col-actions { order: 3; text-align: right; }

    /* Detail: stack dọc */
    .jpc-inq-detail {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    /* Thumbnail: full width, height cố định */
    .jpc-inq-thumb {
        width: 100%;
        min-width: unset;
        height: 160px;
        border-radius: 6px;
    }

    /* Info: mỗi field full width */
    .jpc-inq-info .d-flex {
        flex-direction: column;
        gap: 4px !important;
    }
    .jpc-inq-info .d-flex > span,
    .jpc-inq-info .d-flex > div {
        width: 100%;
    }

    /* Buttons: ngang, full width, đều nhau */
    .jpc-inq-btns {
        flex-direction: row;
        align-items: stretch;
        min-width: unset;
        width: 100%;
        gap: 8px;
    }
    .jpc-inq-btns .btn {
        flex: 1;
        height: 42px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0 10px;
        white-space: nowrap;
    }

    /* Stage: circle nhỏ hơn, label ẩn */
    .jpc-stage-circle { width: 22px; height: 22px; font-size: 11px; }
    .jpc-stage-label  { display: none; }
    .jpc-stage-line   { margin-bottom: 0; }
    .jpc-inq-stage    { padding: 10px 12px 12px; }
}

/* Inquiry unread dot (admin) */
.jpc-inq-new-reply-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e63946;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* ── Nav search (bottom header bar) ─────────────────────────── */
.jpc-nav-search-wrap {
    display: flex;
    align-items: stretch;
    height: 42px;
    min-width: 300px;
    max-width: 420px;
    width: 100%;
}
.jpc-nav-search-input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: #fafafa;
    color: #333;
    font-size: 13px;
    padding: 0 14px;
    outline: none;
    min-width: 0;
}
.jpc-nav-search-input:focus { border-color: #bbb; }
.jpc-nav-search-input::placeholder { color: #aaa; }
.jpc-nav-search-btn {
    flex-shrink: 0;
    width: 48px;
    background: var(--jpc-red, #d43533);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: background .2s;
    border-radius: 0 6px 6px 0;
}
.jpc-nav-search-btn:hover { background: #b52e2c; }

/* ── New Arrivals badge ──────────────────────────────────────── */
.jpc-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--jpc-red, #d43533);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    border-radius: 3px;
    line-height: 1.6;
    vertical-align: middle;
}
.jpc-section-head .d-flex { gap: 8px; }

.color-red { background: var(--jpc-red, #d43533);}

/* ── Profile dropdown ───────────────────────────────────────── */
.jpc-btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    padding: 5px 12px 5px 6px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.jpc-btn-profile:hover,
.jpc-btn-profile[aria-expanded="true"] {
    border-color: var(--jpc-red, #d43533);
    background: rgba(212,53,51,.08);
}
.jpc-profile-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.jpc-profile-initials-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--jpc-red, #d43533);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.jpc-btn-profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile header avatar button */
.jpc-mobile-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}
.jpc-mobile-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.jpc-mobile-avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--jpc-red, #d43533);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* Dropdown panel */
.jpc-profile-menu {
    min-width: 260px;
    right: 0 !important;
    left: auto !important;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    padding: 0;
    overflow: hidden;
    margin-top: 15px !important;
}
@media (max-width: 991px) {
    .jpc-profile-menu {
        position: fixed !important;
        top: 70px !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        margin-top: 15px !important;
        border-radius: 0 0 0 10px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Header block */
.jpc-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    background: #f8f9fb;
}
.jpc-profile-avatar-lg {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--jpc-red, #d43533);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.jpc-profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jpc-profile-meta { min-width: 0; }
.jpc-profile-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a2e44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jpc-profile-email {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jpc-profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
    background: #eafaf1;
    border-radius: 20px;
    padding: 2px 8px;
}

/* Menu items */
.jpc-profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.jpc-profile-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    color: #666;
    flex-shrink: 0;
    transition: color .15s;
}
.jpc-profile-item:hover {
    background: #f5f7fa;
    color: var(--jpc-red, #d43533);
    text-decoration: none;
}
.jpc-profile-item:hover i { color: var(--jpc-red, #d43533); }
.jpc-profile-logout { color: #e74c3c; }
.jpc-profile-logout i { color: #e74c3c; }
.jpc-profile-logout:hover { background: #fff5f5; color: #c0392b; }
.jpc-profile-logout:hover i { color: #c0392b; }

/* =====================================================
   PRODUCT DETAIL PAGE — 2-column layout
   ===================================================== */

/* Desktop: float layout — gallery & quote left, right floats right */
@media (min-width: 992px) {
    .jpc-pd-grid    { overflow: hidden; }
    .jpc-pd-gallery { float: left;  width: calc(50% - 5px); margin-right: 10px; }
    .jpc-pd-right   { float: right; width: calc(50% - 5px); padding-left: 10px; }
    .jpc-pd-quote   { float: left;  width: calc(50% - 5px); margin-right: 10px; clear: left; }

    .jpc-pd-quote .jpc-quote-section { margin-top: 20px !important; }
}

/* Mobile: stack dọc Gallery → Details+CIF → Free Quote */
@media (max-width: 991px) {
    .jpc-pd-grid    { display: flex; flex-direction: column; }
    .jpc-pd-gallery { order: 1; }
    .jpc-pd-right   { order: 2; }
    .jpc-pd-quote   { order: 3; }
}

/* ── CIF Calculator — scroll offset for sticky header ──────────────────
   Topbar (42px, desktop only) + Navbar (70px) + breathing room = 120px
   scroll-margin-top pushes the scroll target below the sticky header.  */
#pd-estimate-cif {
    scroll-margin-top: 80px;   /* mobile: only navbar ~70px */
}
@media (min-width: 992px) {
    #pd-estimate-cif {
        scroll-margin-top: 120px;  /* desktop: topbar 42 + navbar 70 + 8 buffer */
    }
}

/* Shared freight-estimator presentation; calculation/persistence stays page-specific. */
.pd-cif { padding-top: 32px; }
.jpc-estimator { container: pd-cif / inline-size; }
.pd-cif-heading { margin-bottom: 16px; }
.pd-cif-heading .jpc-pd-section-title { font-size: 18px; letter-spacing: 0; text-transform: none; margin-bottom: 6px; line-height: 1.4; }
.pd-cif-heading p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }
.pd-cif-card { border: 1px solid #e4e8ef; border-radius: 12px; background: #fff; }
.pd-cif-form, .pd-cif-results { padding: 20px; }
.pd-cif-form { border-bottom: 1px solid #e4e8ef; }
.pd-cif-route-grid, .pd-cif-fee-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pd-cif-field { min-width: 0; }
.pd-cif-form .jpc-form-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #334155; letter-spacing: 0; text-transform: none; }
.pd-cif-form .jpc-ss-toggle { height: 44px; border-radius: 7px; border-color: #dce2e9; font-size: 14px; padding: 0 12px; color: #1a2a3e; }
.pd-cif-form .jpc-ss-toggle:focus,
.pd-cif-form .jpc-ss-toggle.open { border-color: var(--jpc-red); outline: 2px solid #fbe6e5; outline-offset: 1px; }
.pd-cif-method { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.pd-cif-method legend { width: auto; float: none; }
.pd-cif-method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-cif-method-options label { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid #dce2e9; border-radius: 7px; color: #475569; font-size: 14px; cursor: pointer; }
.pd-cif input[type="radio"] { accent-color: var(--jpc-red); flex-shrink: 0; }
.pd-cif-method-options label:has(input:checked) { border-color: var(--jpc-red); background: #fff8f7; color: #1a2a3e; font-weight: 600; }
.pd-cif-method-options label:focus-within { outline: 2px solid var(--jpc-red); outline-offset: 2px; }
.pd-cif-fees { margin-bottom: 20px; border: 1px solid #e4e8ef; border-radius: 8px; background: #f6f8fa; }
.pd-cif-fees summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 14px; color: #334155; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.pd-cif-fees summary span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pd-cif-fees summary small { padding: 2px 7px; border: 1px solid #dce2e9; border-radius: 4px; background: #fff; color: #64748b; font-size: 11px; font-weight: 400; }
.pd-cif-fees summary::-webkit-details-marker { display: none; }
.pd-cif-fees summary:focus-visible { outline: 2px solid var(--jpc-red); outline-offset: 3px; }
.pd-cif-fees[open] summary i { transform: rotate(180deg); }
.pd-cif-fee-help { margin: -4px 14px 16px; color: #64748b; font-size: 12px; line-height: 1.5; }
.pd-cif-fee-grid { padding: 0 14px 16px; }
.jpc-estimator .pd-cif-calculate { display: flex; align-items: center; justify-content: center; gap: 8px; height: auto; min-height: 46px; padding: 12px 16px; margin: 0; font-size: 14px; letter-spacing: 0; border-radius: 7px; line-height: 1.4; }
.pd-cif-calculate:focus-visible { outline: 2px solid #1a2a3e; outline-offset: 3px; }
.pd-cif-calculate:disabled { opacity: .65; cursor: wait; }
.pd-cif-results { scroll-margin-top: 100px; }
.pd-cif-status { margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid #15803d; background: #f0fdf4; color: #166534; font-size: 13px; line-height: 1.5; }
.pd-cif-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; padding: 14px 16px; border: 1px solid #f2d5a6; border-radius: 8px; background: #fffbf3; color: #854d0e; font-size: 13px; line-height: 1.6; }
.pd-cif-notice i { flex-shrink: 0; margin-top: 2px; font-size: 18px; }
.pd-cif-subtitle { margin: 0 0 12px; color: #1a2a3e; font-size: 14px; font-weight: 700; }
.pd-cif #pd_carrier_list { display: grid; gap: 8px; margin-bottom: 24px; }
.jpc-estimator .jpc-carrier-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0; border: 1px solid #e4e8ef; border-radius: 8px; background: #fff; cursor: pointer; }
.jpc-estimator .jpc-carrier-card.is-selected { background: #fff8f7; border-color: var(--jpc-red); }
.jpc-estimator .jpc-carrier-card:focus-within { outline: 2px solid var(--jpc-red); outline-offset: 2px; }
.pd-cif-carrier-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pd-cif-carrier-name { font-size: 13px; font-weight: 600; color: #1a2a3e; }
.pd-cif-carrier-detail { margin-top: 3px; color: #64748b; font-size: 12px; }
.pd-cif-carrier-price { font-size: 14px; font-weight: 700; color: #1a2a3e; white-space: nowrap; }
.jpc-estimator .jpc-bd-row { align-items: baseline; gap: 16px; padding: 12px 0; font-size: 13px; line-height: 1.5; }
.jpc-estimator .jpc-bd-label { min-width: 0; color: #64748b; overflow-wrap: anywhere; }
.jpc-estimator .jpc-bd-val { flex-shrink: 0; max-width: 58%; color: #1a2a3e; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.jpc-estimator .pd-cif-carrier-meta { padding-top: 4px; font-size: 12px; }
.jpc-estimator .pd-cif-carrier-meta .jpc-bd-val { color: #64748b; font-weight: 400; }
.pd-cif #pd_malaysia_duty_wrap { margin-top: 20px; }
.jpc-estimator .jpc-my-duty-card { border: 1px solid #e4e8ef; border-radius: 8px; }
.jpc-estimator .jpc-my-duty-header { background: #f6f8fa; color: #334155; border-bottom: 1px solid #e4e8ef; padding: 13px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.jpc-estimator .jpc-my-duty-highlight { background: #f6f8fa; padding: 12px 14px; }
.jpc-estimator .jpc-radio-label { min-height: 32px; white-space: normal; line-height: 1.5; }
.pd-cif-total { padding: 20px; border-top: 1px solid #e4e8ef; border-radius: 0 0 12px 12px; background: #fff8f7; }
.pd-cif-total .jpc-bd-cif-row { flex-wrap: wrap; gap: 8px 16px; padding: 0; }
.pd-cif-total .jpc-bd-cif-label { color: #334155; font-size: 14px; }
.pd-cif-total .jpc-bd-cif-val { margin-left: auto; max-width: 100%; font-size: 26px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-cif-total .jpc-calc-note { margin: 10px 0 0; color: #64748b; font-size: 12px; font-style: normal; }
@container pd-cif (min-width: 440px) {
    .pd-cif-route-grid, .pd-cif-fee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container pd-cif (max-width: 359px) {
    .pd-cif-form, .pd-cif-results, .pd-cif-total { padding: 16px; }
    .jpc-estimator .jpc-carrier-card { flex-wrap: wrap; }
    .pd-cif-carrier-price { margin-left: auto; }
}

/* Shared feedback uses the same button and result state on home/detail/checkout. */
.jpc-calc-spinner { display: none; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.is-calculating .jpc-calc-spinner { display: inline-block; animation: jpc-calc-spin .7s linear infinite; }
.pd-cif-calculate.is-calculating > i { display: none; }
@keyframes jpc-calc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-calculating .jpc-calc-spinner { animation: none; } }
.pd-cif-status.is-estimated { border-color: #b7791f; background: #fffbf3; color: #854d0e; }
.jpc-estimator.jpc-calc-card-outer { overflow: visible; box-shadow: none; border: 1px solid #e4e8ef; align-items: stretch; }
.jpc-estimator .jpc-calc-zone-form { flex: 1 1 56%; min-width: 0; padding: 24px; border-bottom: 0; }
.jpc-estimator .jpc-calc-zone-breakdown { flex: 1 1 44%; min-width: 0; padding: 24px; border: 0; background: #fafbfc; border-radius: 0 12px 12px 0; }
.jpc-estimator .jpc-calc-sub { color: #64748b; line-height: 1.5; }
.home-cif-vehicle { grid-column: 1 / -1; }
.co-cif-item [id^="co_carrier_list_"] { display: grid; gap: 8px; margin-bottom: 24px; }
.home-cif-method { margin: 20px 0; }
.jpc-estimator #carrier-options-list { display: grid; gap: 8px; margin-bottom: 24px; }
.co-cif-item .pd-vehicle-strip { margin: 0; border: 0; border-bottom: 1px solid #e4e8ef; border-radius: 12px 12px 0 0; }
@media (max-width: 991px) {
    .jpc-estimator .jpc-calc-zone-form { border-right: 0; border-bottom: 1px solid #e4e8ef; }
    .jpc-estimator .jpc-calc-zone-breakdown { border-radius: 0 0 12px 12px; }
}

/* Detail purchase panel: clear price hierarchy and quieter secondary action. */
.jpc-purchase-panel { container: purchase / inline-size; padding: 22px; margin: 24px 0 4px; border: 1px solid #e4e8ef; border-radius: 12px; background: #fff; }
.jpc-purchase-heading { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #64748b; }
.jpc-purchase-price { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #eef0f3; }
.jpc-purchase-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.jpc-purchase-price-label { color: #64748b; font-size: 14px; font-weight: 500; }
.jpc-purchase-panel .jpc-fob-price { font-size: 30px; line-height: 1.25; font-weight: 700; color: #1a2a3e; font-variant-numeric: tabular-nums; }
.jpc-purchase-panel .jpc-action-btns { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.jpc-purchase-panel .jpc-action-btns > :is(button, .jpc-btn-whatsapp-outline) { min-height: 46px; height: 46px !important; padding: 12px 16px !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0; white-space: normal; line-height: 1.4 !important; }
.jpc-purchase-panel .jpc-btn-secondary { border: 1px solid #dce2e9 !important; background: #f8fafc !important; color: #334155 !important; }
.jpc-purchase-panel .jpc-btn-secondary:hover { background: #eef2f6 !important; border-color: #94a3b8 !important; }
.jpc-purchase-panel .jpc-action-btns > :is(button, .jpc-btn-whatsapp-outline):focus-visible { outline: 2px solid #1a2a3e !important; outline-offset: 3px; }
.jpc-purchase-panel .jpc-btn-primary i { display: none; }
.jpc-purchase-panel .jpc-qty-wrap { margin-bottom: 0 !important; }
@container purchase (min-width: 420px) { .jpc-purchase-panel .jpc-action-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================
   PRODUCT DETAIL — SOLD BY (marketplace seller listings)
   ===================================================== */
.jpc-pd-sold-by {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    background: #f8f9fb;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}
.jpc-pd-sold-by-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ece9fb;
    color: #6c4fd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.jpc-pd-sold-by-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jpc-pd-sold-by-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jpc-pd-sold-by-label { font-size: 12px; color: #888; }
.jpc-pd-sold-by-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a3e;
    text-decoration: none;
    width: fit-content;
}
.jpc-pd-sold-by-name:hover { color: var(--jpc-red); text-decoration: none; }
.jpc-pd-sold-by-message {
    font-size: 13px;
    font-weight: 600;
    color: #25d366;
    text-decoration: none;
    width: fit-content;
}
.jpc-pd-sold-by-message:hover { text-decoration: underline; color: #25d366; }

/* =====================================================
   SHOP PAGE — SELLER CARD (left sidebar)
   ===================================================== */
.jpc-shop-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    padding: 24px 20px;
}
.jpc-shop-card-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ece9fb;
    color: #6c4fd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
}
.jpc-shop-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.jpc-shop-card-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #1a2a3e;
    text-decoration: none;
    margin-bottom: 8px;
}
.jpc-shop-card-name:hover { color: var(--jpc-red); text-decoration: none; }
.jpc-shop-card-verify { display: inline-flex; flex-shrink: 0; }
.jpc-shop-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.jpc-shop-card-rating-count { font-size: 12px; color: #888; }
.jpc-shop-card-address {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}
.jpc-shop-card-address i { color: #999; margin-right: 4px; }
.jpc-shop-card-divider { width: 100%; height: 1px; background: #eef0f2; margin-bottom: 16px; }
.jpc-shop-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}
.jpc-shop-card-meta-label { font-size: 12px; color: #888; }
.jpc-shop-card-meta-value { font-size: 13px; font-weight: 600; color: #1a2a3e; }
.jpc-shop-card-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.jpc-shop-card-social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .15s, color .15s;
}
.jpc-shop-card-social-btn:hover { background: var(--jpc-red); color: #fff; }
.jpc-shop-card-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: var(--jpc-red);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}
.jpc-shop-card-follow-btn:hover { opacity: .88; color: #fff; text-decoration: none; }
.jpc-shop-card-follow-btn--active { background: #28a745; }

/* =====================================================
   WORLDWIDE SHIPPING SECTION
   ===================================================== */
.jpc-worldwide-section {
    background: linear-gradient(160deg, #06111e 0%, #0d1e30 55%, #0a1928 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}
.jpc-worldwide-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(212,53,51,.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Top row: copy (left) + map (right) ── */
.jpc-ww-top {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
}
.jpc-ww-copy  { flex: 1 1 0; min-width: 0; }
.jpc-ww-map   {
    flex: 0 0 420px;
    width: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.07);
}
.jpc-ww-map svg { display: block; width: 100%; height: auto; }

/* badge */
.jpc-ww-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,53,51,.15);
    border: 1px solid rgba(212,53,51,.35);
    color: #e87572;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* heading */
.jpc-ww-heading {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 14px;
}
.jpc-ww-highlight {
    color: var(--jpc-red);
    position: relative;
}

/* subtext */
.jpc-ww-sub {
    font-size: 0.92rem;
    color: #9ab3c8;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 24px;
}

/* mini stats */
.jpc-ww-stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.jpc-ww-stat {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}
.jpc-ww-stat:first-child { padding-left: 0; }
.jpc-ww-stat strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.jpc-ww-stat span {
    font-size: 0.72rem;
    color: #7a9ab5;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 3px;
}
.jpc-ww-stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.12);
}

/* CTA buttons */
.jpc-ww-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.jpc-ww-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--jpc-red);
    color: #fff !important;
    font-size: 0.87rem;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .2s;
}
.jpc-ww-btn-primary:hover { background: var(--jpc-red-dark); }
.jpc-ww-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: #fff !important;
    font-size: 0.87rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,.3);
    text-decoration: none !important;
    transition: border-color .2s, background .2s;
}
.jpc-ww-btn-outline:hover {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.06);
}

/* ── Region cards grid ── */
.jpc-ww-regions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.jpc-ww-region-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 18px 20px;
    transition: background .2s, border-color .2s;
}
.jpc-ww-region-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(212,53,51,.35);
}
.jpc-ww-region-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.jpc-ww-region-head i {
    font-size: 1.1rem;
    color: var(--jpc-red);
}
.jpc-ww-region-head span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.jpc-ww-country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.jpc-ww-country {
    font-size: 0.76rem;
    color: #8eb3cc;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    line-height: 1.4;
}
.jpc-ww-more {
    color: #6e98b5;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .jpc-ww-map { flex: 0 0 340px; width: 340px; }
    .jpc-ww-heading { font-size: 1.8rem; }
}
@media (max-width: 900px) {
    .jpc-ww-top { flex-direction: column; gap: 32px; }
    .jpc-ww-map { width: 100%; flex: none; }
    .jpc-ww-regions { grid-template-columns: repeat(2, 1fr); }
    .jpc-ww-sub { max-width: 100%; }
}
@media (max-width: 576px) {
    .jpc-worldwide-section { padding: 44px 0 40px; }
    .jpc-ww-heading { font-size: 1.55rem; }
    .jpc-ww-regions { grid-template-columns: 1fr; }
    .jpc-ww-stat { padding: 0 14px; }
    .jpc-ww-stat strong { font-size: 1.2rem; }
}

/* ── Worldwide Shipping: carousel + flat countries ── */
.jpc-ww-carousel { border-radius: 12px; overflow: hidden; }
.jpc-ww-carousel-img { height: 420px; object-fit: cover; object-position: center; }
.jpc-ww-carousel .carousel-control-prev,
.jpc-ww-carousel .carousel-control-next { width: 40px; opacity: 0; transition: opacity .2s; }
.jpc-ww-carousel:hover .carousel-control-prev,
.jpc-ww-carousel:hover .carousel-control-next { opacity: 1; }
.jpc-ww-carousel-dots { bottom: 10px; }
.jpc-ww-carousel-dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; }
.jpc-ww-carousel-dots li.active { background: #fff; }

.jpc-ww-countries-flat {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.jpc-ww-countries-flat .jpc-ww-country { font-size: .82rem; }

@media (max-width: 900px) {
    .jpc-ww-carousel-img { height: 260px; }
}
@media (max-width: 576px) {
    .jpc-ww-carousel-img { height: 200px; }
}

/* =====================================================
   ORDER STATUS TIMELINE (customer-facing) — ported from jpc order-stage feature
   ===================================================== */
.jpc-cust-timeline { list-style: none; margin: 0; padding: 0; }
.jpc-cust-timeline-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; position: relative; }
.jpc-cust-timeline-item:not(:last-child)::before {
    content: ''; position: absolute; left: 10px; top: 30px; bottom: -8px; width: 2px; background: var(--jpc-border);
}
.jpc-cust-timeline-item--completed:not(:last-child)::before,
.jpc-cust-timeline-item--current:not(:last-child)::before { background: #16a34a; }
.jpc-cust-timeline-dot {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; border: 2px solid var(--jpc-border); color: #fff; background: #fff; z-index: 1;
}
.jpc-cust-timeline-item--completed .jpc-cust-timeline-dot,
.jpc-cust-timeline-item--current .jpc-cust-timeline-dot { background: #16a34a; border-color: #16a34a; }
.jpc-cust-timeline-item--upcoming .jpc-cust-timeline-dot { border-color: var(--jpc-border); }
.jpc-cust-timeline-label { font-size: 13px; color: #9ca3af; min-width: 0; word-break: break-word; }
.jpc-cust-timeline-item--completed .jpc-cust-timeline-label,
.jpc-cust-timeline-item--current .jpc-cust-timeline-label { color: #16a34a; font-weight: 600; }
.jpc-cust-timeline-attachment {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
    color: var(--jpc-red); background: #fef3f2; border: 1px solid #fbdcda;
    border-radius: 999px; padding: 2px 10px;
}
.jpc-cust-timeline-attachment:hover { background: #fbdcda; }
.jpc-cust-timeline-meta { font-size: 11px; color: #b0b3ba; margin-top: 2px; }

/* ===== Order Fee Breakdown / Balance Allocation (ported from jpc deposit+allocate) ===== */
.jpc-pd-breakdown-section { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.jpc-pd-breakdown-body { padding: 4px 16px 12px; }
.jpc-bd-booking-row { background: #fef9f9; padding: 4px 0; }
.jpc-bd-balance-row { background: #fef3f2; padding: 6px 0; border-radius: 4px; margin-top: 2px; }
.jpc-ph-totals { max-width: 360px; margin-left: auto; margin-top: 10px; }
.jpc-ph-totals .jpc-bd-row { padding: 4px 0; }

/* Keep searchable choices keyboard accessible without changing the existing menu appearance. */
.jpc-ss-option {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.jpc-ss-option:focus-visible { outline: 2px solid var(--jpc-red); outline-offset: 2px; }
.jpc-search-box .jpc-ss-toggle { height: 40px; }
