.add-to-cart-bar {
    display: flex;
    position: fixed;
    z-index: 15;
    background: #ffffff;
    border-width: 1px 0 0 0;
    border-color: #cccccc;
    border-style: solid;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
}

.add-to-cart-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.add-to-cart-bar .product-info {
    display: none;
    align-items: center;
    gap: 15px;
}

.add-to-cart-bar button.tocart {
    white-space: nowrap;
    text-transform: uppercase;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #e7131a;
    color: #ffffff;
    border-radius: 25px;
    flex: 1;
    transition: background 0.3s ease;
}

.add-to-cart-bar button.tocart:hover {
    background: #9c0b10;
}

.add-to-cart-bar button.tocart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .add-to-cart-bar {
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15),
                    0 0 30px rgba(0, 0, 0, 0.08);
        padding: 10px 20px;
        width: 700px;
        max-width: calc(100% - 180px);
        margin: auto;
        border-width: 1px 1px 0 1px;
    }

    .add-to-cart-bar .product-info {
        display: flex;
    }

    .add-to-cart-bar .product-info .product-image {
        width: 100px;
        height: 100px;
        object-fit: contain;
        border: none;
        flex-shrink: 0;
    }

    .add-to-cart-bar .product-info .product-name {
        font-size: 16px;
        font-weight: 700;
    }

    .add-to-cart-bar button.tocart {
        max-width: 350px;
    }
}
