@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4C84FF;
    --background-color: #f5f5f5;
    --card-background: #fff;
    --text-primary: #333;
    --text-secondary: #666;
    --star-color: #ffc107;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
    overflow-x: hidden;
}

body {
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card {
    background: var(--card-background);
    border-radius: 2rem;
    overflow: hidden;
    width: 35rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 35rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.product-info {
    padding: 2.5rem;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.product-rating i {
    color: var(--star-color);
    font-size: 1.6rem;
}

.rating-count {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-current {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 1.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-btn {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-btn:hover {
    background: #3a6fe6;
    transform: scale(1.1);
}

.product-btn:active {
    transform: scale(0.95);
}

/* Animation d'ajout au panier */
@keyframes addToCart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}

.product-btn.added {
    animation: addToCart 0.3s ease;
}
