/* ================= BASE ================= */

body {
    background: #f4f6f9;
}

/* ================= CLIENTE ================= */

.cliente-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ================= CLIENTE CARD ================= */

.cliente-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    gap: 15px;
}

/* código no canto */
.cliente-codigo {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* imagem */
.cliente-img {
    width: 70px;
    height: 70px;
    min-width: 70px;

    background: #f1f3f5;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-img img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* dados */
.cliente-dados h5 {
    margin: 0;
    font-size: 1.2rem;
}

.cliente-dados p {
    margin: 0;
    color: #6c757d;
}

/* ================= GRID (IMPORTANTE) ================= */

#produtosPossui,
#produtosNaoPossui {
    row-gap: 15px;
}

/* ================= CARDS ================= */

.card-produto {
    border-radius: 12px;
    transition: 0.2s;
    min-width: 280px;

    display: flex;
    flex-direction: row;
    overflow: hidden;

    background: #ffffff;
}

.card-produto:hover {
    transform: scale(1.01);
}

/* ================= LOGO ================= */

.produto-logo-box {
    width: 100px;
    min-width: 100px;
    background: #f8f9fa;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    flex-shrink: 0; /* impede esmagar */
}

.produto-logo-box img {
    display: block;
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* ================= CONTEÚDO ================= */

.card-produto .p-3 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-produto h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card-produto p {
    flex-grow: 1;
    margin-bottom: 10px;

    /* corta texto longo */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ================= BOTÕES ================= */

.card-produto .btn {
    width: 100%;
}

/* ================= SEÇÕES ================= */

.secao-produtos {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* header */
.secao-header {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* título */
.secao-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

/* ================= VARIAÇÕES ================= */

/* CONTRATADOS */
.secao-produtos.contratados .secao-header {
    background: #e6f4ea;
    color: #198754;
}

/* DISPONÍVEIS */
.secao-produtos.disponiveis .secao-header {
    background: #fdecea;
    color: #dc3545;
}

/* ================= FOOTER ================= */

.footer-medware {
    background: #e9ecef;
    padding: 50px 0;
    margin-top: 50px;
}

.footer-medware h6 {
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-medware ul {
    list-style: none;
    padding: 0;
}

.footer-medware ul li {
    margin-bottom: 6px;
    cursor: pointer;
}

.footer-medware ul li:hover {
    text-decoration: underline;
}

.footer-logo img {
    width: 250px;
    height: auto;
}

/* ================= RESPONSIVO ================= */

@media (max-width: 768px) {
    .card-produto {
        flex-direction: column;
    }

    .produto-logo-box {
        width: 100%;
        min-width: 100%;
        height: 120px;
    }

    .produto-logo-box img {
        width: 70%;
        height: 70%;
    }
}
