/* Importar CSS original */
@import url('styles.css');

/* Melhorias específicas para o carrinho */
.cart-qty {
    width: 80px;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
}

.cart-btn {
    background: #00B04F;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.cart-btn:hover {
    background: #009640;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
}

.cart-item-desc {
    flex: 1;
    margin-right: 1rem;
}

.cart-item input[type="number"] {
    width: 60px;
    padding: 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
}

.cart-item button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.cart-item button:hover {
    background: #dc2626;
}

/* Melhorias no modal do carrinho */
#cart-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#cart-modal h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Melhorias no modal de detalhes */
.modal-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    background: #f8fafc;
    padding: 0.45rem;
    border-radius: 6px;
    border-left: 3px solid #00B04F;
}

.detail-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cart-item > div:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-section h4 {
        font-size: 1rem;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: slideIn 0.3s ease-out;
}

/* Feedback visual */
.validation-message {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #00B04F;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 4000;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

/* Melhorias nos badges */
.badge {
    font-size: 0.99rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-material {
    background: #fef3c7;
    color: #92400e;
}

.badge-certificate {
    background: #dbeafe;
    color: #1e40af;
}

.badge-grade {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Melhorias no layout dos produtos */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00B04F;
}

.details-btn {
    background: #00B04F;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.details-btn:hover {
    background: #009640;
}

