/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    background-color: #FCF8F3;
}

/* Header */
header {
    padding: 1.5rem 2rem;
    background-color: #FCF8F3;
}

.header-pill {
    background-color: #FEFDFB;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

header nav a {
    color: #000;
    text-decoration: none;
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

header nav a:hover {
    opacity: 0.7;
}

header nav a.active {
    font-weight: 600;
}

@media (max-width: 700px) {
    header {
        padding: 1rem;
    }

    .header-pill {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        border-radius: 28px;
    }

    .header-logo img {
        height: 40px;
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 1.2rem;
    }

    header nav a {
        font-size: 0.95rem;
    }

    main {
        padding: 0 1rem;
    }
}

/* Main */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Products Grid - Responsive */
#products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    #products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #products {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    border-radius: 21px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Couleurs par catégorie */
.product-card.teddies {
    background-color: #F1DEC6;
}

.product-card.cameras {
    background-color: #E7E7E7;
}

.product-card.furniture {
    background-color: #FFFFFF;
}

/* Image du produit */
.product-card .product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 21px 21px 0 0;
}

/* Contenu de la carte */
.product-card .card-content {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Nom du produit - Lexend SemiBold */
.product-card .product-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #000;
    margin: 0;
}

/* Prix - Lexend Regular */
.product-card .price {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #000;
}

/* Options (gélules) */
.product-card .options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.product-card .option-pill {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #000;
    background-color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid #ddd;
}

/* Boutons CTA */
.product-card .card-buttons {
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-card .btn-voir {
    width: 100%;
    font-family: 'Alata', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.product-card .btn-cart img {
    width: 28px;
    height: 28px;
}

/* Couleurs boutons par catégorie */
.product-card.teddies .btn-voir,
.product-card.teddies .btn-cart {
    background-color: #FEFBFD;
}

.product-card.cameras .btn-voir,
.product-card.cameras .btn-cart {
    background-color: #FCFEFB;
}

.product-card.furniture .btn-voir,
.product-card.furniture .btn-cart {
    background-color: #FBFEFE;
}

/* Buttons */
.btn, button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.btn:hover, button:hover {
    background-color: #2980b9;
}

/* Cart */
.cart-container {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cart-form-section {
    flex: 1;
    background-color: #F1DEC6;
    border-radius: 21px;
    padding: 2rem;
}

#order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
}

.form-group-small {
    flex: 0.6;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    background-color: #fff;
    color: #000;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #aaa;
}

.cart-total {
    margin-top: 1.5rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000;
}

.btn-checkout {
    font-family: 'Alata', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #000;
    background-color: #FCFEFB;
    border-radius: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: fit-content;
    padding: 0 2rem;
    margin-top: 1rem;
}

.btn-checkout:hover {
    opacity: 0.9;
    background-color: #FCFEFB;
}

.cart-product-section {
    width: 320px;
}

.cart-product-card {
    border-radius: 21px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-product-card.teddies {
    background-color: #F1DEC6;
}

.cart-product-card.cameras {
    background-color: #E7E7E7;
}

.cart-product-card.furniture {
    background-color: #FFFFFF;
}

.cart-product-card .cart-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 21px 21px 0 0;
}

.cart-product-card .cart-product-content {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-product-card .cart-product-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000;
    margin: 0;
}

.cart-product-card .cart-product-price {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #000;
    margin: 0;
}

.cart-product-card .cart-product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.cart-product-card .cart-option-pill {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #000;
    background-color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid #ddd;
}

.cart-product-card .btn-remove {
    font-family: 'Alata', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #000;
    background-color: #fff;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: fit-content;
    padding: 0 1.5rem;
    margin-top: 0.5rem;
}

.cart-product-card .btn-remove:hover {
    background-color: #f0f0f0;
}

.cart-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
}

.cart-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
}

.cart-nav-btn:hover {
    background-color: #f0f0f0;
}

.cart-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cart-empty {
    background-color: #f5f5f5;
    border-radius: 21px;
    padding: 2rem;
    text-align: center;
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    color: #666;
}

@media (max-width: 800px) {
    .cart-container {
        flex-direction: column;
    }
    
    .cart-product-section {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Confirmation */
#confirmation {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

#confirmation h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Product Detail */
#product-detail {
    display: flex;
    border-radius: 21px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

#product-detail .product-detail-image {
    width: 40%;
    min-height: 350px;
    object-fit: cover;
    border-radius: 21px 0 0 21px;
}

#product-detail .product-detail-info {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Couleurs fond info par catégorie */
#product-detail.cameras .product-detail-info {
    background-color: #E7E7E7;
}

#product-detail.teddies .product-detail-info {
    background-color: #F1DEC6;
}

#product-detail.furniture .product-detail-info {
    background-color: #FFFFFF;
}

#product-detail .product-detail-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #000;
    margin: 0;
}

#product-detail .product-detail-price {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #000;
    margin: 0;
}

#product-detail .product-detail-description {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

#product-detail .options-label {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #000;
    margin: 0.5rem 0 0.3rem 0;
}

#product-detail .product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

#product-detail .option-pill {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #000;
    background-color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#product-detail .option-pill:hover {
    background-color: #f0f0f0;
}

#product-detail .option-pill.selected {
    background-color: #d0d0d0;
    border-color: #aaa;
}

#product-detail .btn-add-cart {
    font-family: 'Alata', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: fit-content;
    padding: 0 2rem;
    margin-top: 1rem;
}

#product-detail.cameras .btn-add-cart {
    background-color: #FCFEFB;
}

#product-detail.teddies .btn-add-cart {
    background-color: #FEFBFD;
}

#product-detail.furniture .btn-add-cart {
    background-color: #FBFEFE;
}

#product-detail .btn-add-cart:hover {
    opacity: 0.9;
}

@media (max-width: 700px) {
    #product-detail {
        flex-direction: column;
    }
    
    #product-detail .product-detail-image {
        width: 100%;
        min-height: 250px;
        border-radius: 21px 21px 0 0;
    }
}
