.part-details-page {
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    margin-top: 50px;
}

.breadcrumb a {
    color: var(--text-main);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.details-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.seller-card,
.safety-tips,
.related-parts-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
}

.seller-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.seller-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1eb956;
}

.btn-call {
    background-color: #212529;
    color: white;
}

.safety-tips h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FADC6A;
}

.safety-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.safety-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-list li i {
    color: #5cb85c;
}

.related-parts-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.related-part-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.related-part-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.related-part-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.related-part-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Main Content */
.gallery-section {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.main-image-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-item {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.part-main-info {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.part-full-title {
    font-size: 2rem;
    flex: 1;
}

.price-box {
    text-align: left;
}

.main-price {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    margin-bottom: 30px;
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.meta-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.description-section h3 {
    margin-bottom: 15px;
    position: relative;
    padding: 0 15px;
}

/* FR = gauche */
.description-section h3.fr {
    text-align: left;
}

.description-section h3.fr::before {
    left: 0;
    right: auto;
}

/* AR = droite */
.description-section h3.ar {
    text-align: right;
}

.description-section h3.ar::before {
    right: 0;
    left: auto;
}

.description-section h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.description-text {
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: #f1f3f5;
    color: var(--text-muted);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .details-layout {
        grid-template-columns: 1fr;
    }

    .details-layout>*:first-child {
        order: 2;
    }
}

