/* Container de Grid Responsivo (PC e Mobile) */
.copicom-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

/* Colunas Configuráveis */
.copicom-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.copicom-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.copicom-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Adaptação para Mobile */
@media (max-width: 768px) {
    .copicom-grid.cols-2,
    .copicom-grid.cols-3,
    .copicom-grid.cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Card do Anúncio */
.copicom-card-anuncio {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Enquadramento da Imagem (object-fit: cover) */
.copicom-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #f4f4f4;
}

.copicom-img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Selo de Brinde */
.badge-brinde {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
}

/* Corpo do Card */
.copicom-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.copicom-card-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.valor-principal {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.valor-brinde-calculado {
    font-size: 0.9rem;
    color: #27ae60;
    margin-top: 5px;
}

/* Botão WhatsApp */
.btn-whatsapp {
    display: block;
    text-align: center;
    background-color: #25D366;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebd56;
    color: #fff;
}

/* Estilos do Painel Admin Customizado */
.copicom-admin-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.copicom-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.copicom-table {
    width: 100%;
    border-collapse: collapse;
}

.copicom-table th, .copicom-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
}
.status-publish { background: #d4edda; color: #155724; }
.status-draft { background: #fff3cd; color: #856404; }

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary { background: #007bff; color: #fff; }
.btn-success { background: #28a745; color: #fff; }
.btn-small { padding: 4px 8px; font-size: 0.8rem; }
.btn-approve { background: #28a745; color: #fff; }
.btn-suspend { background: #ffc107; color: #000; }
.btn-delete { background: #dc3545; color: #fff; }