/* Page détail produit */
.product-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #ff6600;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-detail-image:hover img {
    transform: scale(1.05);
}

.product-detail-info h1 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2em;
}

.product-price {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff6600;
}

.product-stats {
    margin: 20px 0;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.stat-value {
    font-weight: bold;
    color: #ff6600;
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
}

.product-details ul {
    list-style: none;
    padding: 0;
}

.product-details li {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.recent-orders {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.recent-orders ul {
    list-style: none;
    padding: 0;
}

.recent-orders li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.order-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    background: #e8f5e9;
    color: #2e7d32;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

/* Rendre les cartes produits cliquables */
.product-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card a {
    color: inherit;
    text-decoration: none;
}

.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-card .add-to-cart {
    position: relative;
    z-index: 2;
}