/* ===== Car Details Page (Inventory) - Professional ===== */

.cd-header-spacer { height: 64px; width: 100%; }

.cd-breadcrumb-bar {
    padding: 14px 0;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.cd-breadcrumb-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.cd-breadcrumb-bar > .container > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #09c509;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    padding: 4px 10px;
    border-radius: 4px;
}

.cd-breadcrumb-bar > .container > a:hover {
    color: #067c06;
    background: rgba(9, 197, 9, 0.08);
}

.cd-breadcrumb-bar > .container > a i { font-size: 0.7rem; }

.cd-breadcrumb-path { font-size: 0.8rem; color: #888; }
.cd-breadcrumb-path a { color: #888; text-decoration: none; transition: color 0.2s; }
.cd-breadcrumb-path a:hover { color: #333; }
.cd-breadcrumb-path span { color: #333; font-weight: 600; }

.cd-product-area { padding: 36px 0 52px; background: #fff; max-width: 100%; overflow-x: hidden; }

.cd-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.cd-gallery-section { position: sticky; top: 84px; min-width: 0; max-width: 100%; }

.cd-main-image-wrap {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.cd-main-image-wrap img {
    max-width: 100%;
    max-height: 420px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.cd-main-image-wrap:hover img { transform: scale(1.02); }

.cd-image-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.cd-image-strip::-webkit-scrollbar { height: 4px; }
.cd-image-strip::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.cd-strip-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    background: #fafafa;
    transition: all 0.2s;
}

.cd-strip-thumb:hover { border-color: #999; transform: translateY(-2px); }
.cd-strip-thumb.active {
    border-color: #09c509;
    box-shadow: 0 0 0 2px rgba(9, 197, 9, 0.15);
}

.cd-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cd-buybox { padding: 4px 0 24px; min-width: 0; max-width: 100%; width: 100%; }

.cd-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cd-product-model { font-size: 0.95rem; color: #666; margin: 0 0 24px; }
.cd-product-model span { color: #333; font-weight: 600; }

.cd-price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fdf0 100%);
    border: 1px solid #dcfce7;
    border-radius: 6px;
    margin-bottom: 26px;
}

.cd-current-price { font-size: 1.875rem; font-weight: 800; color: #09c509; letter-spacing: -0.02em; }
.cd-price-note { font-size: 0.8rem; color: #888; }

.cd-spec-table {
    margin-bottom: 26px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.cd-spec-table table { width: 100%; border-collapse: collapse; }
.cd-spec-table tr:not(:last-child) { border-bottom: 1px solid #f0f0f0; }
.cd-spec-table tr:nth-child(even) { background: #fafafa; }

.cd-spec-table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    width: 130px;
    background: #f5f5f5;
    border-right: 1px solid #f0f0f0;
}

.cd-spec-table td { font-size: 0.88rem; color: #333; font-weight: 500; padding: 12px 14px; word-break: break-word; }

.cd-buy-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; margin-bottom: 24px; max-width: 100%; }

.cd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 100%;
}

.cd-btn-inquire { background: #25d366; color: #fff; }
.cd-btn-inquire:hover { background: #1da851; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); transform: translateY(-1px); }
.cd-btn-inquire:active { transform: translateY(0); }

.cd-btn-contact { background: #fff; color: #09c509; border: 2px solid #09c509; }
.cd-btn-contact:hover { background: #f0fdf4; box-shadow: 0 4px 12px rgba(9, 197, 9, 0.15); transform: translateY(-1px); }

.cd-delivery-info { padding-top: 22px; border-top: 1px solid #eee; }

.cd-delivery-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.cd-delivery-item i { font-size: 1.15rem; color: #09c509; margin-top: 2px; width: 20px; text-align: center; }
.cd-delivery-item strong { display: block; font-size: 0.83rem; color: #333; font-weight: 600; margin-bottom: 2px; }
.cd-delivery-item span { font-size: 0.76rem; color: #888; line-height: 1.4; }

.cd-details-section { padding: 48px 0; background: #f9f9f9; border-top: 1px solid #e8e8e8; }

.cd-tabs { display: flex; gap: 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 0; }
.cd-tab {
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cd-tab:hover { color: #333; }
.cd-tab.active { color: #09c509; border-bottom-color: #09c509; }

.cd-tab-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 28px;
}

.cd-tab-pane { display: none; }
.cd-tab-pane.active { display: block; }
.cd-tab-pane p { font-size: 0.9rem; color: #555; line-height: 1.8; margin: 0; }

.cd-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cd-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #333;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
}
.cd-feature-item i { color: #09c509; font-size: 0.8rem; }

.cd-related-section { padding: 48px 0; background: #fff; border-top: 1px solid #e8e8e8; }
.cd-related-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 26px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.cd-related-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.25s;
}

.cd-related-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); border-color: #ccc; transform: translateY(-3px); }

.cd-related-image {
    background: #fafafa;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.cd-related-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cd-related-info { padding: 14px; border-top: 1px solid #eee; }
.cd-related-info h3 { font-size: 0.85rem; font-weight: 600; color: #333; margin: 0 0 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-related-year { display: block; font-size: 0.75rem; color: #888; margin-bottom: 6px; }
.cd-related-price { font-size: 1rem; font-weight: 700; color: #09c509; }

@media (max-width: 900px) {
    .cd-product-layout { display: block; }
    .cd-gallery-section { position: static; }
    .cd-buybox { margin-top: 32px; }
    .cd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .cd-header-spacer { height: 70px; }
    .cd-breadcrumb-bar .container { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cd-product-area { padding: 24px 0 36px; }
    .cd-product-title { font-size: 1.35rem; }
    .cd-current-price { font-size: 1.5rem; }
    .cd-main-image-wrap { min-height: 280px; padding: 16px; }
    .cd-spec-table th { width: 90px; font-size: 0.7rem; }
    .cd-spec-table td { font-size: 0.82rem; }
    .cd-btn { padding: 14px 20px; font-size: 0.85rem; }
    .cd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cd-price-display { padding: 14px 16px; flex-wrap: wrap; }
    .cd-tabs { overflow-x: auto; }
    .cd-tab { white-space: nowrap; padding: 12px 20px; font-size: 0.8rem; }
    .cd-tab-content { padding: 20px; }
    .cd-features-grid { grid-template-columns: 1fr; }
}
