/* Réinitialisation des styles pour le plugin */
.sticky-add-to-cart,
.sticky-add-to-cart * {
    box-sizing: border-box;
}

.sticky-add-to-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
    width: 100%;
}

.sticky-add-to-cart.visible {
    transform: translateY(0);
}

.sticky-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.sticky-product-image {
    display: none;
    margin-right: 20px;
}

.sticky-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.sticky-add-to-cart .woocommerce img,
.sticky-add-to-cart .woocommerce-page img {
    max-width: 80px;
}

.sticky-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sticky-product-info h3 {
    margin: 0;
    font-size: 16px;
}

.sticky-product-info .price {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: bold;
}

.add-to-cart-button {
    background-color: #DD1111;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    border-radius: 10px;
}

.add-to-cart-button:hover {
    background-color: #BB0303;
}

.add-to-cart-button.loading {
    background-color: #666;
    cursor: not-allowed;
}

@media (min-width: 769px) {
    .sticky-product-image {
        display: block;
    }
    
    .add-to-cart-button {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .sticky-container {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .sticky-product-info {
        display: none;
    }

    .add-to-cart-button {
        width: 100%;
    }
}