/* Styles spécifiques à la page collections (collections.html) */

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.collections-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; }

/* --- SIDEBAR --- */
.sidebar-cat { 
    background: white; padding: 25px; border-radius: 25px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); height: fit-content; 
    position: sticky; top: 100px; z-index: 10;
}
.cat-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--violet-profond); margin-bottom: 20px; border-bottom: 2px solid var(--rose-tendre); padding-bottom: 10px; }
.cat-list { list-style: none; padding: 0; }
.cat-btn { width: 100%; text-align: left; padding: 12px 15px; margin-bottom: 8px; border: none; background: transparent; border-radius: 12px; cursor: pointer; font-family: 'Quicksand', sans-serif; font-weight: 600; transition: 0.3s; }
.cat-btn:hover, .cat-btn.active { background: var(--beige-soie); color: var(--violet-profond); }

/* --- STYLE PANIER --- */
.cart-zone { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 10px; z-index: 2000; }
.cart-icon { font-size: 2.2rem !important; }
.cart-badge {
    position: absolute !important; top: -2px !important; right: -5px !important;
    background: var(--lilas) !important; color: white !important;
    width: 22px !important; height: 22px !important; border-radius: 50% !important;
    font-size: 12px !important; font-weight: 700 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    border: 2px solid white !important;
}

/* --- GRILLE PRODUITS --- */
.collection-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; min-height: 400px; }
.card-prod { 
    background: white; border-radius: 25px; padding: 15px; transition: 0.4s; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.04); position: relative; display: flex; flex-direction: column; z-index: 5;
}
.card-prod:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.card-prod img { width: 100%; height: 280px; object-fit: cover; border-radius: 20px; cursor: pointer; margin-bottom: 15px; }
.card-nom { font-weight: 700; color: var(--violet-profond); margin-bottom: 5px; }
.card-prix { font-weight: 500; color: var(--rose-vif); margin-bottom: 15px; }

.btn-add-cart {
    background-color: var(--lilas); color: white; border: none; padding: 12px 20px;
    border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-add-cart:hover { background-color: var(--violet-profond); }

.fav-btn {
    position: absolute; top: 25px; right: 25px; width: 35px; height: 35px;
    background-color: rgba(255, 255, 255, 0.8);
    clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
    border: none; cursor: pointer; z-index: 20; transition: all 0.3s ease;
}
.fav-btn.active { background-color: #ff3300 !important; }

#cart-drawer {
    position: fixed; top: 0; right: -450px; width: 400px; height: 100vh;
    background: white; z-index: 10001; transition: right 0.4s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column;
}
#cart-drawer.open { right: 0; }

.modal-produit { display: none; position: fixed; z-index: 5000; inset: 0; background: rgba(90, 74, 120, 0.6); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal-content { background: white; padding: 30px; border-radius: 30px; max-width: 550px; width: 90%; position: relative; }

