/* ======================= CONTAINER & GRID ======================= */
#container {
    width: 95%;
    max-width: 1400px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 100px;
}

/* ======================= CARD PRODUIT PREMIUM ======================= */
.card {
    background: #111;
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: white;
}

.card:hover {
    transform: translateY(-15px);
    border-color: rgba(211, 47, 47, 0.5);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15);
}

/* ======================= IMAGE ======================= */
.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
    transform: scale(1.1);
}

/* ======================= CARD BODY ======================= */
.card-body {
    padding: 25px;
    background: linear-gradient(to top, #0a0a0a, #111);
    position: relative;
    z-index: 2;
}

.card-body h3 {
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-body p {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-body .price {
    font-size: 1.5em;
    font-weight: 900;
    color: #d32f2f;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-body .price::after {
    content: 'TTC';
    font-size: 0.4em;
    color: #666;
    font-weight: 400;
}

/* ======================= BOUTON PREMIUM ======================= */
.card-body button {
    padding: 14px 20px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.card-body button:hover {
    background-color: #b71c1c;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.card-body button i {
    font-size: 1.1em;
}

/* Animation on scroll classes */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
}







.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}


.cart-nav button {
    margin-right: 10px;
    font-weight: bold;
}

.cart-nav .badge {
    font-size: 0.8rem;
}


.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}




/* ===== Scrollbar globale ===== */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #777 #111;
}