/* =========================================================
   PRODUCT DETAILS PAGE — Design system aligned with dm-
   ========================================================= */

/* ---- Section wrapper ---- */
.pd-section {
    padding: 48px 0 64px;
    background: #f8f9fa;
}

/* ==================== GALLERY ==================== */
.pd-gallery {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    position: sticky;
    top: 80px;
}

.pd-main-carousel .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.pd-main-carousel .carousel-control-prev,
.pd-main-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    margin: 0 12px;
    opacity: 1;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #f7941d #f1f3f5;
}
.pd-thumbs::-webkit-scrollbar { height: 4px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: #f7941d; border-radius: 2px; }

.pd-thumb {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color .2s, transform .15s;
    flex-shrink: 0;
}
.pd-thumb.active,
.pd-thumb:hover {
    border-color: #f7941d;
    transform: scale(1.05);
}

/* ==================== INFO PANEL ==================== */
.pd-info-panel {
    background: #fff;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Badges row */
.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.pd-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pd-badge-new      { background: #16a34a; color: #fff; }
.pd-badge-used     { background: #f7941d; color: #fff; }
.pd-badge-stock    { background: #e8f5e9; color: #16a34a; }
.pd-badge-ref      { background: #f1f3f5; color: #6c757d; }

/* Vehicle title */
.pd-vehicle-title {
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Price block */
.pd-price-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #fff9f0;
    border-radius: 10px;
    border-left: 4px solid #f7941d;
    margin-bottom: 20px;
}
.pd-price-net {
    font-size: 2rem;
    font-weight: 900;
    color: #f7941d;
    line-height: 1;
}
.pd-price-net-label {
    font-size: .75rem;
    font-weight: 500;
    color: #adb5bd;
    margin-left: 2px;
}
.pd-price-brut {
    font-size: .95rem;
    color: #6c757d;
    text-decoration: line-through;
}

/* Quick spec chips */
.pd-specs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.pd-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: .82rem;
    color: #495057;
    font-weight: 500;
}
.pd-spec-chip i {
    color: #f7941d;
    font-size: .82rem;
}

/* Financing mini-table */
.pd-financing {
    margin-bottom: 22px;
}
.pd-financing-title {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #6c757d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-financing-title i { color: #f7941d; }
.pd-fin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}
.pd-fin-table thead th {
    background: #111827;
    color: #fff;
    padding: 8px 12px;
    font-weight: 600;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.pd-fin-table tbody tr { border-bottom: 1px solid #f1f3f5; }
.pd-fin-table tbody tr:nth-child(odd) { background: #fafafa; }
.pd-fin-table tbody td { padding: 8px 12px; color: #6c757d; }
.pd-fin-table tbody td:last-child { font-weight: 700; color: #f7941d; }

/* CTA actions */
.pd-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}
.pd-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 13px 18px;
    background: #f7941d;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    min-width: 180px;
    border: none;
    cursor: pointer;
}
.pd-btn-primary:hover { background: #e07e0e; color: #fff; transform: translateY(-1px); }

.pd-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    background: transparent;
    color: #f7941d;
    font-weight: 700;
    font-size: .92rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #f7941d;
    transition: background .2s, color .2s;
    flex: 1;
    min-width: 140px;
}
.pd-btn-outline:hover { background: #f7941d; color: #fff; }

.pd-icon-btns {
    display: flex;
    gap: 8px;
}
.pd-icon-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    color: #6c757d;
    font-size: 1rem;
    transition: all .2s;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
}
.pd-icon-btn:hover {
    background: #f7941d;
    border-color: #f7941d;
    color: #fff;
}

/* ==================== TABS ==================== */
.pd-tabs-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
    margin-top: 36px;
}
.pd-tab-nav {
    display: flex;
    border-bottom: 2px solid #f1f3f5;
    margin: 0;
    padding: 0 20px;
    list-style: none;
}
.pd-tab-nav li a {
    display: block;
    padding: 16px 22px;
    font-weight: 600;
    font-size: .88rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.pd-tab-nav li a.active,
.pd-tab-nav li a:hover {
    color: #f7941d;
    border-bottom-color: #f7941d;
}
.pd-tab-body { display: none; padding: 28px 28px 24px; }
.pd-tab-body.active { display: block; }

/* Description tab */
.pd-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #f7941d;
    margin-bottom: 14px;
}
.pd-desc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.pd-desc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    color: #495057;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}
.pd-desc-item i {
    color: #f7941d;
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.pd-desc-item strong { color: #111827; }

/* Info cards (payment / guarantee) */
.pd-info-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    background: #fafafa;
    transition: box-shadow .2s;
}
.pd-info-card:hover { box-shadow: 0 4px 16px rgba(247,148,29,.15); }
.pd-info-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.pd-info-card-head .pd-ic-icon {
    width: 40px;
    height: 40px;
    background: #fff9f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-info-card-head .pd-ic-icon i { color: #f7941d; font-size: 1.1rem; }
.pd-info-card-head .pd-ic-icon img { width: 26px; height: 26px; object-fit: contain; }
.pd-info-card-head strong {
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #111827;
}
.pd-info-card p {
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.pd-info-card p::before { content: "✓"; color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* Specs tab */
.pd-specs-group { margin-bottom: 24px; }
.pd-specs-group-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #f7941d;
    font-weight: 700;
    padding: 6px 0 8px;
    border-bottom: 2px solid #f7941d;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-spec-row {
    display: flex;
    border-bottom: 1px solid #f1f3f5;
}
.pd-spec-row:nth-child(odd) { background: #fafafa; }
.pd-spec-key, .pd-spec-val {
    padding: 9px 14px;
    font-size: .86rem;
}
.pd-spec-key {
    width: 48%;
    font-weight: 600;
    color: #111827;
}
.pd-spec-val { color: #6c757d; }

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs { padding-top: 14px; padding-bottom: 0; background: transparent; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .pd-gallery { position: static; }
    .pd-main-carousel .carousel-item img { height: 300px; }
}
@media (max-width: 575px) {
    .pd-main-carousel .carousel-item img { height: 220px; }
    .pd-info-panel { padding: 20px 16px; }
    .pd-price-net { font-size: 1.6rem; }
    .pd-actions { flex-direction: column; }
    .pd-btn-primary, .pd-btn-outline { min-width: unset; width: 100%; }
    .pd-tab-body { padding: 20px 16px; }
}
