/* 
 * Order Bump Frontend CSS
 * Design Minimalista - Estilo do Print 
 * Version: 1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.order-bump-container-minimal {
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-bump-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.order-bump-title-minimal {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
}

.order-bump-add-all-button {
    background: #803280 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(128, 50, 128, 0.3);
    font-family: 'Poppins', sans-serif !important;
    white-space: nowrap;
}

.order-bump-add-all-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 50, 128, 0.4);
    background: #6b2a6b !important;
}

.order-bump-add-all-button:active {
    transform: translateY(0);
}

.order-bump-add-all-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.order-bump-all-added {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #803280;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.order-bump-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-bump-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.order-bump-product-item:hover {
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.order-bump-product-item.in-cart {
    background: #f0fdf4;
    border-color: #86efac;
}

.order-bump-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.order-bump-product-image-small {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.order-bump-product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-bump-product-details-small {
    flex: 1;
}

.order-bump-product-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.order-bump-product-price {
    font-size: 14px;
    color: #6b7280;
}

.order-bump-product-price .amount {
    font-weight: 600;
    color: #2d3748;
}

.order-bump-product-action {
    flex-shrink: 0;
    margin-left: 15px;
}

.order-bump-add-single-button {
    background: #803280 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(128, 50, 128, 0.3);
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    .order-bump-add-single-button {
        width: auto !important;
    }
    
    .order-bump-add-all-button {
        width: auto !important;
    }
}

.order-bump-add-single-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 50, 128, 0.4);
    background: #6b2a6b !important;
}

.order-bump-add-single-button:active {
    transform: translateY(0);
}

.order-bump-add-single-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.order-bump-added-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #803280;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.order-bump-added-badge span:first-child {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

/* Animação de loading */
.order-bump-add-all-button.loading::after,
.order-bump-add-single-button.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .order-bump-container-minimal {
        padding: 20px 15px;
    }

    .order-bump-header-minimal {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
    }

    .order-bump-title-minimal {
        font-size: 16px;
        text-align: center;
    }

    .order-bump-add-all-button {
        width: 100% !important;
        flex-shrink: 0;
    }

    .order-bump-product-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .order-bump-product-info {
        width: 100%;
    }

    .order-bump-product-action {
        width: 100%;
        margin-left: 0;
    }

    .order-bump-add-single-button {
        width: 100% !important;
        display: block !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .order-bump-added-badge {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .order-bump-product-image-small {
        width: 50px;
        height: 50px;
    }

    .order-bump-product-name {
        font-size: 14px;
    }

    .order-bump-product-price {
        font-size: 13px;
    }
}


@media (max-width: 480px) {
    .order-bump-product-image-small {
        width: 50px;
        height: 50px;
    }
    
    .order-bump-product-name {
        font-size: 14px;
    }
    
    .order-bump-product-price {
        font-size: 13px;
    }
    
    .order-bump-add-all-button,
    .order-bump-add-single-button {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}
