body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
}

.top-bar {
    background: white;
    padding: 15px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-btn {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.product-view {
    display: flex;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Gauche : Photos */
.gallery {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Droite : Infos */
.details-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    margin-bottom: 15px;
}

.product-title {
    font-size: 24px;
    margin: 10px 0;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

.specs {
    border-top: 1px solid #eee;
    padding: 20px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.spec-item span { color: #888; }

.description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
}

.btn-msg, .btn-buy {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-msg {
    border: 1px solid #333;
    color: #333;
}

.btn-buy {
    background: #0077ff;
    color: white;
}

.btn-buy:hover { background: #0056b3; }
.btn-msg:hover { background: #f0f0f0; }

    body.light {
        background: #ffffff;
        color: #000000;
    }

    body.dark {
        background: #121212;
        color: #eeeeee;
    }

    body.dark .top-bar,
    body.dark .profile-card,
    body.dark .product-card {
        background: #1e1e1e;
        color: #eeeeee;
    }

    body.dark a {
        color: #9ecfff;
    }